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

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

26 lines
757 B
Plaintext
Raw Normal View History

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
|
LL | type Ty;
| -------- item in trait
...
2018-08-08 07:28:26 -05:00
LL | type Ty = ();
| ------------- previous definition here
2019-03-09 06:03:44 -06:00
LL | type Ty = usize;
| ^^^^^^^^^^^^^^^^ 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
|
LL | const BAR: u32;
| --------------- item in trait
...
2018-08-08 07:28:26 -05:00
LL | const BAR: u32 = 7;
| ------------------- previous definition here
2019-03-09 06:03:44 -06:00
LL | const BAR: u32 = 8;
| ^^^^^^^^^^^^^^^^^^^ 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`.