2024-02-03 18:37:28 +00:00
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:2:5
|
|
|
|
|
|
|
|
|
LL | String::from::utf8;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
help: there is an associated function with a similar name: `from_utf8`
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
|
|
|
LL | String::from_utf8;
|
|
|
|
| ~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:5:5
|
|
|
|
|
|
|
|
|
LL | String::from::utf8();
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
help: there is an associated function with a similar name: `from_utf8`
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
|
|
|
LL | String::from_utf8();
|
|
|
|
| ~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:8:5
|
|
|
|
|
|
|
|
|
LL | String::from::utf16();
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
help: there is an associated function with a similar name: `from_utf16`
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
|
|
|
LL | String::from_utf16();
|
|
|
|
| ~~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:11:5
|
|
|
|
|
|
|
|
|
LL | String::from::method_that_doesnt_exist();
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: if there were a trait named `Example` with associated type `from` implemented for `String`, you could use the fully-qualified path
|
|
|
|
|
|
|
|
|
LL | <String as Example>::from::method_that_doesnt_exist();
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:14:5
|
|
|
|
|
|
|
|
|
LL | str::from::utf8();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
help: if there were a trait named `Example` with associated type `from` implemented for `str`, you could use the fully-qualified path
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
LL | <str as Example>::from::utf8();
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/issue-109195.rs:17:5
|
|
|
|
|
|
|
|
|
LL | str::from::utf8_mut();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
help: if there were a trait named `Example` with associated type `from` implemented for `str`, you could use the fully-qualified path
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
2024-02-06 02:53:28 +00:00
|
|
|
LL | <str as Example>::from::utf8_mut();
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~
|
2024-02-03 18:37:28 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0223`.
|