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