rust/tests/ui/error-codes/E0201.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Plaintext
Raw Normal View History

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