]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0201.stderr
Rollup merge of #98617 - ChrisDenton:const-unwrap, r=Mark-Simulacrum
[rust.git] / src / test / ui / error-codes / E0201.stderr
1 error[E0201]: duplicate definitions with name `bar`:
2   --> $DIR/E0201.rs:5:5
3    |
4 LL |     fn bar(&self) -> bool { self.0 > 5 }
5    |     --------------------- previous definition of `bar` here
6 LL |     fn bar() {}
7    |     ^^^^^^^^ duplicate definition
8
9 error[E0201]: duplicate definitions with name `baz`:
10   --> $DIR/E0201.rs:17:5
11    |
12 LL |     fn baz(&self) -> bool { true }
13    |     --------------------- previous definition of `baz` here
14 LL |     fn baz(&self) -> bool { self.0 > 5 }
15    |     ^^^^^^^^^^^^^^^^^^^^^ duplicate definition
16
17 error[E0201]: duplicate definitions with name `Quux`:
18   --> $DIR/E0201.rs:18:5
19    |
20 LL |     type Quux = u32;
21    |     ---------------- previous definition of `Quux` here
22 ...
23 LL |     type Quux = u32;
24    |     ^^^^^^^^^^^^^^^^ duplicate definition
25
26 error: aborting due to 3 previous errors
27
28 For more information about this error, try `rustc --explain E0201`.