2018-08-08 07:28:26 -05:00
|
|
|
error[E0201]: duplicate definitions with name `Ty`:
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/associated-item-duplicate-names.rs:11:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-08-10 14:31:26 -05:00
|
|
|
LL | type Ty;
|
|
|
|
| -------- item in trait
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | type Ty = ();
|
2022-08-10 14:31:26 -05:00
|
|
|
| ------------- previous definition here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | type Ty = usize;
|
2022-08-10 14:31:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ duplicate definition
|
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.rs:13:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-08-10 14:31:26 -05:00
|
|
|
LL | const BAR: u32;
|
|
|
|
| --------------- item in trait
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | const BAR: u32 = 7;
|
2022-08-10 14:31:26 -05:00
|
|
|
| ------------------- previous definition here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | const BAR: u32 = 8;
|
2022-08-10 14:31:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ duplicate definition
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0201`.
|