Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2015 23:48
Show Gist options
  • Save anonymous/0c562768aeb9412269ce to your computer and use it in GitHub Desktop.
Save anonymous/0c562768aeb9412269ce to your computer and use it in GitHub Desktop.
Shared via Rust Playground
trait Trait1<T> { }
trait Trait2<'x> { type Foo; }
impl<'a,T: Trait2<'a>> Trait1<<T as Trait2<'a>>::Foo> for T { }
fn main() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment