]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-names.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / associated-item / associated-item-duplicate-names.stderr
1 error[E0201]: duplicate definitions with name `Ty`:
2   --> $DIR/associated-item-duplicate-names.rs:21:5
3    |
4 LL |     type Ty = ();
5    |     ------------- previous definition of `Ty` here
6 LL |     type Ty = usize; //~ ERROR duplicate definitions
7    |     ^^^^^^^^^^^^^^^^ duplicate definition
8
9 error[E0201]: duplicate definitions with name `BAR`:
10   --> $DIR/associated-item-duplicate-names.rs:23:5
11    |
12 LL |     const BAR: u32 = 7;
13    |     ------------------- previous definition of `BAR` here
14 LL |     const BAR: u32 = 8; //~ ERROR duplicate definitions
15    |     ^^^^^^^^^^^^^^^^^^^ duplicate definition
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0201`.