Created
October 3, 2015 09:52
-
-
Save jFransham/b4a5cd38cb87019bec86 to your computer and use it in GitHub Desktop.
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
struct A<T: Test> { | |
a: T, | |
} | |
impl<T: Test> A<T> { | |
fn new<U: Test>(t: T) -> A<T> { | |
A { a: t } | |
} | |
} | |
trait Test { | |
fn t() -> () { } | |
} | |
struct A0; | |
impl Test for A0 { } | |
fn main() -> () { | |
let a: A<A0> = A::new(A0); | |
} |
Author
jFransham
commented
Oct 3, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment