]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-names.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[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:11:5
3    |
4 LL |     type Ty = ();
5    |     ------------- previous definition of `Ty` here
6 LL |     type Ty = usize;
7    |     ^^^^^^^^^^^^^^^^ duplicate definition
8
9 error[E0201]: duplicate definitions with name `BAR`:
10   --> $DIR/associated-item-duplicate-names.rs:13:5
11    |
12 LL |     const BAR: u32 = 7;
13    |     ------------------- previous definition of `BAR` here
14 LL |     const BAR: u32 = 8;
15    |     ^^^^^^^^^^^^^^^^^^^ duplicate definition
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0201`.