]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/coherence-blanket-conflicts-with-specific-multidispatch.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / coherence-blanket-conflicts-with-specific-multidispatch.rs
index 7b60a5ecbd71f4ac8533599cfb20cb73c4b42a71..1defe6c8b20e3e16a53ca178db9e42e59a39729c 100644 (file)
@@ -18,7 +18,7 @@ trait MyTrait<T> {
     fn get(&self) -> T;
 }
 
-impl<T> MyTrait<T> for T { //~ ERROR E0119
+impl<T> MyTrait<T> for T {
     fn get(&self) -> T {
         panic!()
     }
@@ -29,7 +29,7 @@ struct MyType {
     dummy: usize
 }
 
-impl MyTrait<MyType> for MyType {
+impl MyTrait<MyType> for MyType { //~ ERROR E0119
     fn get(&self) -> usize { (*self).clone() }
 }