1 error[E0201]: duplicate definitions with name `bar`:
4 LL | fn bar(&self) -> bool { self.0 > 5 }
5 | ------------------------------------ previous definition of `bar` here
6 LL | fn bar() {} //~ ERROR E0201
7 | ^^^^^^^^^^^ duplicate definition
9 error[E0201]: duplicate definitions with name `baz`:
10 --> $DIR/E0201.rs:27:5
12 LL | fn baz(&self) -> bool { true }
13 | ------------------------------ previous definition of `baz` here
14 LL | fn baz(&self) -> bool { self.0 > 5 } //~ ERROR E0201
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
17 error[E0201]: duplicate definitions with name `Quux`:
18 --> $DIR/E0201.rs:28:5
21 | ---------------- previous definition of `Quux` here
23 LL | type Quux = u32; //~ ERROR E0201
24 | ^^^^^^^^^^^^^^^^ duplicate definition
26 error: aborting due to 3 previous errors
28 For more information about this error, try `rustc --explain E0201`.