@@ -5,13 +5,13 @@ LL | fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
5
5
| ^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Get>::Value`
6
6
7
7
error[E0223]: ambiguous associated type
8
- --> $DIR/associated-types-in-ambiguous-context.rs:17 :17
8
+ --> $DIR/associated-types-in-ambiguous-context.rs:20 :17
9
9
|
10
10
LL | trait Foo where Foo::Assoc: Bar {
11
11
| ^^^^^^^^^^ help: use fully-qualified syntax: `<Self as Foo>::Assoc`
12
12
13
13
error[E0223]: ambiguous associated type
14
- --> $DIR/associated-types-in-ambiguous-context.rs:22 :10
14
+ --> $DIR/associated-types-in-ambiguous-context.rs:25 :10
15
15
|
16
16
LL | type X = std::ops::Deref::Target;
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as std::ops::Deref>::Target`
@@ -20,8 +20,14 @@ error[E0223]: ambiguous associated type
20
20
--> $DIR/associated-types-in-ambiguous-context.rs:11:23
21
21
|
22
22
LL | fn grab(&self) -> Grab::Value;
23
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Grab>::Value`
23
+ | ^^^^^^^^^^^ help: use fully-qualified syntax: `<Self as Grab>::Value`
24
24
25
- error: aborting due to 4 previous errors
25
+ error[E0223]: ambiguous associated type
26
+ --> $DIR/associated-types-in-ambiguous-context.rs:14:22
27
+ |
28
+ LL | fn get(&self) -> Get::Value;
29
+ | ^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Get>::Value`
30
+
31
+ error: aborting due to 5 previous errors
26
32
27
33
For more information about this error, try `rustc --explain E0223`.
0 commit comments