]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/impl_items-2.stderr
Rollup merge of #102612 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs...
[rust.git] / src / test / ui / hygiene / impl_items-2.stderr
1 error[E0201]: duplicate definitions with name `foo`:
2   --> $DIR/impl_items-2.rs:14:5
3    |
4 LL |     fn foo() {}
5    |     ----------- item in trait
6 ...
7 LL |     fn foo() {}
8    |     ----------- previous definition here
9 ...
10 LL |     fn foo() {}
11    |     ^^^^^^^^^^^ duplicate definition
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0201`.