Skip to content

Commit de5aaee

Browse files
committed
Updated test for E0221
As a part of issue #35233 ?r @GuillaumeGomez
1 parent 7ac11ca commit de5aaee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/compile-fail/E0221.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ trait Foo {
1818
trait Bar : Foo {
1919
type A: T2;
2020
fn do_something() {
21-
let _: Self::A; //~ ERROR E0221
21+
let _: Self::A;
22+
//~^ ERROR E0221
23+
//~| NOTE ambiguous associated type `A`
24+
//~| NOTE associated type `Self` could derive from `Foo`
25+
//~| NOTE associated type `Self` could derive from `Bar`
2226
}
2327
}
2428

0 commit comments

Comments
 (0)