rust/src/test/ui/error-codes/E0201.stderr

29 lines
990 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0201]: duplicate definitions with name `bar`:
2018-12-25 09:56:47 -06:00
--> $DIR/E0201.rs:5:5
2018-02-07 21:35:35 -06:00
|
2018-02-22 18:42:32 -06:00
LL | fn bar(&self) -> bool { self.0 > 5 }
2018-02-07 21:35:35 -06:00
| ------------------------------------ previous definition of `bar` here
2018-02-22 18:42:32 -06:00
LL | fn bar() {} //~ ERROR E0201
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^ duplicate definition
error[E0201]: duplicate definitions with name `baz`:
2018-12-25 09:56:47 -06:00
--> $DIR/E0201.rs:17:5
2018-02-07 21:35:35 -06:00
|
2018-02-22 18:42:32 -06:00
LL | fn baz(&self) -> bool { true }
2018-02-07 21:35:35 -06:00
| ------------------------------ previous definition of `baz` here
2018-02-22 18:42:32 -06:00
LL | fn baz(&self) -> bool { self.0 > 5 } //~ ERROR E0201
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
error[E0201]: duplicate definitions with name `Quux`:
2018-12-25 09:56:47 -06:00
--> $DIR/E0201.rs:18:5
2018-02-07 21:35:35 -06:00
|
2018-02-22 18:42:32 -06:00
LL | type Quux = u32;
2018-02-07 21:35:35 -06:00
| ---------------- previous definition of `Quux` here
...
2018-02-22 18:42:32 -06:00
LL | type Quux = u32; //~ ERROR E0201
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^ duplicate definition
error: aborting due to 3 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0201`.