mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
26 lines
778 B
Plaintext
26 lines
778 B
Plaintext
error[E0201]: duplicate definitions with name `method`:
|
|
--> $DIR/glob-glob-conflict.rs:26:5
|
|
|
|
|
LL | fn method(&self) -> u8;
|
|
| ----------------------- item in trait
|
|
...
|
|
LL | reuse Trait1::*;
|
|
| ---------------- previous definition here
|
|
LL | reuse Trait2::*;
|
|
| ^^^^^^^^^^^^^^^^ duplicate definition
|
|
|
|
error[E0201]: duplicate definitions with name `method`:
|
|
--> $DIR/glob-glob-conflict.rs:30:5
|
|
|
|
|
LL | fn method(&self) -> u8;
|
|
| ----------------------- item in trait
|
|
...
|
|
LL | reuse Trait1::*;
|
|
| ---------------- previous definition here
|
|
LL | reuse Trait1::*;
|
|
| ^^^^^^^^^^^^^^^^ duplicate definition
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0201`.
|