]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/E0034.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / test / compile-fail / E0034.rs
index 669bece0f7d175cf7121c54d70cfb23c20ca28bc..136a74f7a8b74272f51fd9f7b6d33e2e8ca23bec 100644 (file)
@@ -18,9 +18,17 @@ trait Trait2 {
     fn foo();
 }
 
-impl Trait1 for Test { fn foo() {} }
-impl Trait2 for Test { fn foo() {} }
+impl Trait1 for Test {
+    fn foo() {}
+    //~^ NOTE candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
+}
+
+impl Trait2 for Test {
+    fn foo() {}
+    //~^ NOTE candidate #2 is defined in an impl of the trait `Trait2` for the type `Test`
+}
 
 fn main() {
-    Test::foo() //~ ERROR E0034
+    Test::foo() //~ ERROR multiple applicable items in scope
+    //~| NOTE multiple `foo` found
 }