2018-02-08 03:35:35 +00:00
|
|
|
error[E0201]: duplicate definitions with name `baz`:
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0201.rs:17:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2022-08-10 19:31:26 +00:00
|
|
|
LL | fn baz(&self) -> bool;
|
|
|
|
| ---------------------- item in trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn baz(&self) -> bool { true }
|
2022-08-10 19:31:26 +00:00
|
|
|
| ------------------------------ previous definition here
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn baz(&self) -> bool { self.0 > 5 }
|
2022-08-10 19:31:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error[E0201]: duplicate definitions with name `Quux`:
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0201.rs:18:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2022-08-10 19:31:26 +00:00
|
|
|
LL | type Quux;
|
|
|
|
| ---------- item in trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | type Quux = u32;
|
2022-08-10 19:31:26 +00:00
|
|
|
| ---------------- previous definition here
|
2018-02-08 03:35:35 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | type Quux = u32;
|
2022-08-10 19:31:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ duplicate definition
|
|
|
|
|
2022-08-13 10:32:01 +00:00
|
|
|
error[E0592]: duplicate definitions with name `bar`
|
2022-08-10 19:31:26 +00:00
|
|
|
--> $DIR/E0201.rs:5:5
|
|
|
|
|
|
|
|
|
LL | fn bar(&self) -> bool { self.0 > 5 }
|
2022-08-13 10:32:01 +00:00
|
|
|
| --------------------- other definition for `bar`
|
2022-08-10 19:31:26 +00:00
|
|
|
LL | fn bar() {}
|
2022-08-13 10:32:01 +00:00
|
|
|
| ^^^^^^^^ duplicate definitions for `bar`
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2022-08-13 10:32:01 +00:00
|
|
|
Some errors have detailed explanations: E0201, E0592.
|
|
|
|
For more information about an error, try `rustc --explain E0201`.
|