blob: 71a1360cb5a220da7c47aa52449ea72e61334c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:8:36
|
LL | fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
| ^^^^^^^^^^
|
help: if there were a type named `Example` that implemented `Get`, you could use the fully-qualified path
|
LL - fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
LL + fn get<T:Get,U:Get>(x: T, y: U) -> <Example as Get>::Value {}
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:22:17
|
LL | trait Foo where Foo::Assoc: Bar {
| ^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - trait Foo where Foo::Assoc: Bar {
LL + trait Foo where <Self as Foo>::Assoc: Bar {
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:27:10
|
LL | type X = std::ops::Deref::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - type X = std::ops::Deref::Target;
LL + type X = <ByteStr as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <ByteString as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <CString as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <IoSlice<'_> as Deref>::Target;
|
= and N other candidates
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:13:23
|
LL | fn grab(&self) -> Grab::Value;
| ^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - fn grab(&self) -> Grab::Value;
LL + fn grab(&self) -> <Self as Grab>::Value;
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:16:22
|
LL | fn get(&self) -> Get::Value;
| ^^^^^^^^^^
|
help: if there were a type named `Example` that implemented `Get`, you could use the fully-qualified path
|
LL - fn get(&self) -> Get::Value;
LL + fn get(&self) -> <Example as Get>::Value;
|
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0223`.
|