rust/tests/ui/associated-item/associated-item-duplicate-names-3.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
685 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0201]: duplicate definitions with name `Bar`:
2018-12-25 09:56:47 -06:00
--> $DIR/associated-item-duplicate-names-3.rs:14:5
2018-08-08 07:28:26 -05:00
|
LL | type Bar;
| --------- item in trait
...
2018-08-08 07:28:26 -05:00
LL | type Bar = i16;
| --------------- previous definition here
2019-03-09 06:03:44 -06:00
LL | type Bar = u16;
| ^^^^^^^^^^^^^^^ duplicate definition
2018-08-08 07:28:26 -05:00
error[E0223]: ambiguous associated type
--> $DIR/associated-item-duplicate-names-3.rs:18:12
|
LL | let x: Baz::Bar = 5;
2023-10-16 13:25:11 -05:00
| ^^^^^^^^ help: use fully-qualified syntax: `<Baz as Foo>::Bar`
error: aborting due to 2 previous errors
2018-08-08 07:28:26 -05:00
Some errors have detailed explanations: E0201, E0223.
For more information about an error, try `rustc --explain E0201`.