]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/coherence-blanket-conflicts-with-specific-trait.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / coherence-blanket-conflicts-with-specific-trait.rs
index eeaa68677eb670c37c44e7852401966608bfcbb3..5c5c4d32d675cd7ac1a4c37a180198ffa0771676 100644 (file)
@@ -19,7 +19,7 @@ trait MyTrait {
     fn get(&self) -> usize;
 }
 
-impl<T:OtherTrait> MyTrait for T { //~ ERROR E0119
+impl<T:OtherTrait> MyTrait for T {
     fn get(&self) -> usize { 0 }
 }
 
@@ -27,7 +27,7 @@ struct MyType {
     dummy: usize
 }
 
-impl MyTrait for MyType {
+impl MyTrait for MyType { //~ ERROR E0119
     fn get(&self) -> usize { self.dummy }
 }