Files
rust/tests/ui/self/self-impl.stderr
León Orell Valerian Liehr 8c37c8c3e6 Preserve generic args in suggestions for ambiguous associated items
Most notably, this preserves the `(..)` of ambiguous RTN paths.
2025-05-06 17:04:03 +02:00

28 lines
668 B
Plaintext

error[E0223]: ambiguous associated type
--> $DIR/self-impl.rs:23:16
|
LL | let _: <Self>::Baz = true;
| ^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - let _: <Self>::Baz = true;
LL + let _: <Bar as Foo>::Baz = true;
|
error[E0223]: ambiguous associated type
--> $DIR/self-impl.rs:25:16
|
LL | let _: Self::Baz = true;
| ^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - let _: Self::Baz = true;
LL + let _: <Bar as Foo>::Baz = true;
|
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0223`.