@@ -45,24 +45,24 @@ LL | <String as Example>::from::method_that_doesnt_exist();
45
45
error[E0223]: ambiguous associated type
46
46
--> $DIR/issue-109195.rs:24:5
47
47
|
48
- LL | str::from::utf8 ();
48
+ LL | str::into::string ();
49
49
| ^^^^^^^^^
50
50
|
51
- help: if there were a trait named `Example` with associated type `from` implemented for `str`, you could use the fully-qualified path
51
+ help: there is an associated function with a similar name: `into_string`
52
52
|
53
- LL | < str as Example>::from::utf8 ();
54
- | ~~~~~~~~~~~ ~~~~~~~~~~~
53
+ LL | str::into_string ();
54
+ | ~~~~~~~~~~~
55
55
56
56
error[E0223]: ambiguous associated type
57
57
--> $DIR/issue-109195.rs:27:5
58
58
|
59
- LL | str::from::utf8_mut ();
59
+ LL | str::char::indices ();
60
60
| ^^^^^^^^^
61
61
|
62
- help: if there were a trait named `Example` with associated type `from` implemented for `str`, you could use the fully-qualified path
62
+ help: there is an associated function with a similar name: `char_indices`
63
63
|
64
- LL | < str as Example>::from::utf8_mut ();
65
- | ~~~~~~~~~~ ~~~~~~~~~~~~
64
+ LL | str::char_indices ();
65
+ | ~~~~~~~~~~~~
66
66
67
67
error[E0223]: ambiguous associated type
68
68
--> $DIR/issue-109195.rs:30:5
@@ -97,6 +97,39 @@ help: if there were a trait named `Example` with associated type `bar` implement
97
97
LL | <Foo as Example>::bar::fizz;
98
98
| ~~~~~~~~~~~~~~~~~~~~~
99
99
100
- error: aborting due to 9 previous errors
100
+ error[E0223]: ambiguous associated type
101
+ --> $DIR/issue-109195.rs:39:5
102
+ |
103
+ LL | i32::wrapping::add;
104
+ | ^^^^^^^^^^^^^
105
+ |
106
+ help: there is an associated function with a similar name: `wrapping_add`
107
+ |
108
+ LL | i32::wrapping_add;
109
+ | ~~~~~~~~~~~~
110
+
111
+ error[E0223]: ambiguous associated type
112
+ --> $DIR/issue-109195.rs:42:5
113
+ |
114
+ LL | i32::wrapping::method_that_doesnt_exist;
115
+ | ^^^^^^^^^^^^^
116
+ |
117
+ help: if there were a trait named `Example` with associated type `wrapping` implemented for `i32`, you could use the fully-qualified path
118
+ |
119
+ LL | <i32 as Example>::wrapping::method_that_doesnt_exist;
120
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~
121
+
122
+ error[E0223]: ambiguous associated type
123
+ --> $DIR/issue-109195.rs:47:5
124
+ |
125
+ LL | <dyn std::any::Any>::downcast::mut_unchecked;
126
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
+ |
128
+ help: if there were a trait named `Example` with associated type `downcast` implemented for `(dyn Any + 'static)`, you could use the fully-qualified path
129
+ |
130
+ LL | <(dyn Any + 'static) as Example>::downcast::mut_unchecked;
131
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132
+
133
+ error: aborting due to 12 previous errors
101
134
102
135
For more information about this error, try `rustc --explain E0223`.
0 commit comments