fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1022 B32 linesraw
1error[E0592]: duplicate definitions with name `id`
2  --> $DIR/overlapping_inherent_impls.rs:9:5
3   |
4LL |     fn id() {}
5   |     ^^^^^^^^^^ duplicate definitions for `id`
6...
7LL |     fn id() {}
8   |     ---------- other definition for `id`
9
10error[E0592]: duplicate definitions with name `bar`
11  --> $DIR/overlapping_inherent_impls.rs:19:5
12   |
13LL |     fn bar(&self) {}
14   |     ^^^^^^^^^^^^^^^^ duplicate definitions for `bar`
15...
16LL |     fn bar(&self) {}
17   |     ---------------- other definition for `bar`
18
19error[E0592]: duplicate definitions with name `baz`
20  --> $DIR/overlapping_inherent_impls.rs:29:5
21   |
22LL |     fn baz(&self) {}
23   |     ^^^^^^^^^^^^^^^^ duplicate definitions for `baz`
24...
25LL |     fn baz(&self) {}
26   |     ---------------- other definition for `baz`
27   |
28   = note: upstream crates may add a new impl of trait `std::marker::Copy` for type `std::vec::Vec<_>` in future versions
29
30error: aborting due to 3 previous errors
31
32For more information about this error, try `rustc --explain E0592`.