2018-02-07 21:35:35 -06:00
|
|
|
error[E0201]: duplicate definitions with name `bar`:
|
|
|
|
--> $DIR/E0201.rs:15:5
|
|
|
|
|
|
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`:
|
|
|
|
--> $DIR/E0201.rs:27:5
|
|
|
|
|
|
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`:
|
|
|
|
--> $DIR/E0201.rs:28:5
|
|
|
|
|
|
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`.
|