1
1
error[E0223]: ambiguous associated type
2
- --> $DIR/issue-109195.rs:2 :5
2
+ --> $DIR/issue-109195.rs:12 :5
3
3
|
4
4
LL | String::from::utf8;
5
5
| ^^^^^^^^^^^^
@@ -10,7 +10,7 @@ LL | String::from_utf8;
10
10
| ~~~~~~~~~
11
11
12
12
error[E0223]: ambiguous associated type
13
- --> $DIR/issue-109195.rs:5 :5
13
+ --> $DIR/issue-109195.rs:15 :5
14
14
|
15
15
LL | String::from::utf8();
16
16
| ^^^^^^^^^^^^
@@ -21,7 +21,7 @@ LL | String::from_utf8();
21
21
| ~~~~~~~~~
22
22
23
23
error[E0223]: ambiguous associated type
24
- --> $DIR/issue-109195.rs:8 :5
24
+ --> $DIR/issue-109195.rs:18 :5
25
25
|
26
26
LL | String::from::utf16();
27
27
| ^^^^^^^^^^^^
@@ -32,7 +32,7 @@ LL | String::from_utf16();
32
32
| ~~~~~~~~~~
33
33
34
34
error[E0223]: ambiguous associated type
35
- --> $DIR/issue-109195.rs:11 :5
35
+ --> $DIR/issue-109195.rs:21 :5
36
36
|
37
37
LL | String::from::method_that_doesnt_exist();
38
38
| ^^^^^^^^^^^^
@@ -43,7 +43,7 @@ LL | <String as Example>::from::method_that_doesnt_exist();
43
43
| ~~~~~~~~~~~~~~~~~~~~~~~~~
44
44
45
45
error[E0223]: ambiguous associated type
46
- --> $DIR/issue-109195.rs:14 :5
46
+ --> $DIR/issue-109195.rs:24 :5
47
47
|
48
48
LL | str::from::utf8();
49
49
| ^^^^^^^^^
@@ -54,7 +54,7 @@ LL | <str as Example>::from::utf8();
54
54
| ~~~~~~~~~~~~~~~~~~~~~~
55
55
56
56
error[E0223]: ambiguous associated type
57
- --> $DIR/issue-109195.rs:17 :5
57
+ --> $DIR/issue-109195.rs:27 :5
58
58
|
59
59
LL | str::from::utf8_mut();
60
60
| ^^^^^^^^^
@@ -64,6 +64,39 @@ help: if there were a trait named `Example` with associated type `from` implemen
64
64
LL | <str as Example>::from::utf8_mut();
65
65
| ~~~~~~~~~~~~~~~~~~~~~~
66
66
67
- error: aborting due to 6 previous errors
67
+ error[E0223]: ambiguous associated type
68
+ --> $DIR/issue-109195.rs:30:5
69
+ |
70
+ LL | Foo::bar::baz;
71
+ | ^^^^^^^^
72
+ |
73
+ help: there is an associated function with a similar name: `bar_baz`
74
+ |
75
+ LL | Foo::bar_baz;
76
+ | ~~~~~~~
77
+
78
+ error[E0223]: ambiguous associated type
79
+ --> $DIR/issue-109195.rs:33:5
80
+ |
81
+ LL | Foo::bar::quux;
82
+ | ^^^^^^^^
83
+ |
84
+ help: there is an associated function with a similar name: `bar_quux`
85
+ |
86
+ LL | Foo::bar_quux;
87
+ | ~~~~~~~~
88
+
89
+ error[E0223]: ambiguous associated type
90
+ --> $DIR/issue-109195.rs:36:5
91
+ |
92
+ LL | Foo::bar::fizz;
93
+ | ^^^^^^^^
94
+ |
95
+ help: if there were a trait named `Example` with associated type `bar` implemented for `Foo`, you could use the fully-qualified path
96
+ |
97
+ LL | <Foo as Example>::bar::fizz;
98
+ | ~~~~~~~~~~~~~~~~~~~~~
99
+
100
+ error: aborting due to 9 previous errors
68
101
69
102
For more information about this error, try `rustc --explain E0223`.
0 commit comments