fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
652 B19 linesraw
1error[E0201]: duplicate definitions with name `Ty`:
2  --> $DIR/associated-item-duplicate-names.rs:11:5
3   |
4LL |     type Ty = ();
5   |     ------------- previous definition of `Ty` here
6LL |     type Ty = usize;
7   |     ^^^^^^^^^^^^^^^^ duplicate definition
8
9error[E0201]: duplicate definitions with name `BAR`:
10  --> $DIR/associated-item-duplicate-names.rs:13:5
11   |
12LL |     const BAR: u32 = 7;
13   |     ------------------- previous definition of `BAR` here
14LL |     const BAR: u32 = 8;
15   |     ^^^^^^^^^^^^^^^^^^^ duplicate definition
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0201`.