]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/coherence-projection-conflict-ty-param.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / coherence-projection-conflict-ty-param.rs
index 6880f3e9a3cc9aeecd0ad58182c3b493a03202c8..f04902a70f68c20e490b1719efaefe4b58d38096 100644 (file)
@@ -15,8 +15,8 @@ use std::marker::PhantomData;
 
 pub trait Foo<P> {}
 
-impl <P, T: Foo<P>> Foo<P> for Option<T> {} //~ ERROR E0119
+impl <P, T: Foo<P>> Foo<P> for Option<T> {}
 
-impl<T, U> Foo<T> for Option<U> { }
+impl<T, U> Foo<T> for Option<U> { } //~ ERROR E0119
 
 fn main() {}