Auto merge of #54980 - zackmdavis:and_the_case_of_the_universal_call, r=oli-obk

structured suggestion for E0223 ambiguous associated type

(routine (and when are we going to be done finding these, anyway?) but something that stuck out to me while glancing at #54970)

r? @estebank
This commit is contained in:
bors 2018-10-13 06:48:17 +00:00
commit fb3b47aa42
12 changed files with 31 additions and 78 deletions

View file

@ -2,9 +2,7 @@ error[E0223]: ambiguous associated type
--> $DIR/issue-23073.rs:16:17
|
LL | type FooT = <<Self as Bar>::Foo>::T; //~ ERROR ambiguous associated type
| ^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
|
= note: specify the type using the syntax `<<Self as Bar>::Foo as Trait>::T`
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<<Self as Bar>::Foo as Trait>::T`
error: aborting due to previous error

View file

@ -2,9 +2,7 @@ error[E0223]: ambiguous associated type
--> $DIR/issue-34209.rs:17:9
|
LL | S::B{ } => { },
| ^^^^ ambiguous associated type
|
= note: specify the type using the syntax `<S as Trait>::B`
| ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`
error: aborting due to previous error