2024-02-03 12:37:28 -06:00
|
|
|
fn main() {
|
|
|
|
String::from::utf8;
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
2024-02-05 20:53:28 -06:00
|
|
|
//~| HELP there is an associated function with a similar name: `from_utf8`
|
2024-02-03 12:37:28 -06:00
|
|
|
String::from::utf8();
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
2024-02-05 20:53:28 -06:00
|
|
|
//~| HELP there is an associated function with a similar name: `from_utf8`
|
2024-02-03 12:37:28 -06:00
|
|
|
String::from::utf16();
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
2024-02-05 20:53:28 -06:00
|
|
|
//~| HELP there is an associated function with a similar name: `from_utf16`
|
2024-02-03 12:37:28 -06:00
|
|
|
String::from::method_that_doesnt_exist();
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
|
|
|
//~| HELP if there were a trait named `Example` with associated type `from`
|
|
|
|
str::from::utf8();
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
2024-02-05 20:53:28 -06:00
|
|
|
//~| HELP if there were a trait named `Example` with associated type `from`
|
2024-02-03 12:37:28 -06:00
|
|
|
str::from::utf8_mut();
|
|
|
|
//~^ ERROR ambiguous associated type [E0223]
|
2024-02-05 20:53:28 -06:00
|
|
|
//~| HELP if there were a trait named `Example` with associated type `from`
|
2024-02-03 12:37:28 -06:00
|
|
|
}
|