about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-08-18 06:12:23 +0300
committerGitHub <noreply@github.com>2016-08-18 06:12:23 +0300
commitd69cd7207b58ab08dd07abae9a0409e4997a8ae9 (patch)
treece1144767eb09efbea7433deb1a38ffce2b6a615
parentd36b296cb6d0b6d242ddfe835cdd4f883de9735c (diff)
parented54226467f60a6ca15aabe9cc1f58763503a817 (diff)
downloadrust-d69cd7207b58ab08dd07abae9a0409e4997a8ae9.tar.gz
rust-d69cd7207b58ab08dd07abae9a0409e4997a8ae9.zip
Rollup merge of #35770 - crypto-universe:E0221, r=jonathandturner
Updated test for E0221

As a part of issue #35233
?r @GuillaumeGomez
-rw-r--r--src/test/compile-fail/E0221.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0221.rs b/src/test/compile-fail/E0221.rs
index 213ec5a0488..65105458040 100644
--- a/src/test/compile-fail/E0221.rs
+++ b/src/test/compile-fail/E0221.rs
@@ -18,7 +18,11 @@ trait Foo {
 trait Bar : Foo {
     type A: T2;
     fn do_something() {
-        let _: Self::A; //~ ERROR E0221
+        let _: Self::A;
+        //~^ ERROR E0221
+        //~| NOTE ambiguous associated type `A`
+        //~| NOTE associated type `Self` could derive from `Foo`
+        //~| NOTE associated type `Self` could derive from `Bar`
     }
 }