-
-
Save stevenblenkinsop/1593c851770b3be36e30 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait T<'a> { | |
type A; | |
type Iter: Iterator<Item=Self::A>; | |
fn new() -> Self; | |
fn iter(&self) -> Self::Iter; | |
fn test() where Self: Sized { | |
let a = <Self as T<'a>>::new(); | |
let _ = a.iter().map(|a| a); | |
} | |
} | |
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment