about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcrypto-universe <ykp@protonmail.ch>2016-08-18 00:07:24 +0200
committercrypto-universe <ykp@protonmail.ch>2016-08-18 00:07:24 +0200
commitde5aaee0c5ee48a3ebaffa922846ed19321a8d2a (patch)
tree7ecb4478a5233228a253dc49938c4555d5cb1877
parent7ac11cad3fe85163dd8b0ca1f63af492509f9bfe (diff)
downloadrust-de5aaee0c5ee48a3ebaffa922846ed19321a8d2a.tar.gz
rust-de5aaee0c5ee48a3ebaffa922846ed19321a8d2a.zip
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..c67bfb822c0 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`
     }
 }