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-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0201"
|