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
|
|
|
|
|
2022-08-10 14:31:26 -05:00
|
|
|
LL | type Bar;
|
|
|
|
| --------- item in trait
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | type Bar = i16;
|
2022-08-10 14:31:26 -05:00
|
|
|
| --------------- previous definition here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | type Bar = u16;
|
2022-08-10 14:31:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ duplicate definition
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-08-10 14:31: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`
|
2022-08-10 14:31:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-08-10 14:31:26 -05:00
|
|
|
Some errors have detailed explanations: E0201, E0223.
|
|
|
|
For more information about an error, try `rustc --explain E0201`.
|