fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
942 B28 linesraw
1error[E0201]: duplicate definitions with name `bar`:
2  --> $DIR/E0201.rs:5:5
3   |
4LL |     fn bar(&self) -> bool { self.0 > 5 }
5   |     ------------------------------------ previous definition of `bar` here
6LL |     fn bar() {}
7   |     ^^^^^^^^^^^ duplicate definition
8
9error[E0201]: duplicate definitions with name `baz`:
10  --> $DIR/E0201.rs:17:5
11   |
12LL |     fn baz(&self) -> bool { true }
13   |     ------------------------------ previous definition of `baz` here
14LL |     fn baz(&self) -> bool { self.0 > 5 }
15   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
16
17error[E0201]: duplicate definitions with name `Quux`:
18  --> $DIR/E0201.rs:18:5
19   |
20LL |     type Quux = u32;
21   |     ---------------- previous definition of `Quux` here
22...
23LL |     type Quux = u32;
24   |     ^^^^^^^^^^^^^^^^ duplicate definition
25
26error: aborting due to 3 previous errors
27
28For more information about this error, try `rustc --explain E0201`.