2024-03-16 13:03:36 -05:00
|
|
|
error[E0201]: duplicate definitions with name `foo`:
|
|
|
|
--> $DIR/duplicate-definition-inside-trait-impl.rs:19:5
|
|
|
|
|
|
|
|
|
LL | fn foo(&self) -> u32 { 0 }
|
|
|
|
| -------------------------- item in trait
|
|
|
|
...
|
|
|
|
LL | reuse to_reuse::foo { self }
|
|
|
|
| ---------------------------- previous definition here
|
|
|
|
LL | reuse Trait::foo;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ duplicate definition
|
|
|
|
|
2024-03-26 10:59:03 -05:00
|
|
|
error: aborting due to 1 previous error
|
2024-03-16 13:03:36 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0201`.
|