]> git.proxmox.com Git - rustc.git/blob - tests/ui/error-codes/E0201.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / error-codes / E0201.stderr
1 error[E0201]: duplicate definitions with name `baz`:
2 --> $DIR/E0201.rs:17:5
3 |
4 LL | fn baz(&self) -> bool;
5 | ---------------------- item in trait
6 ...
7 LL | fn baz(&self) -> bool { true }
8 | ------------------------------ previous definition here
9 LL | fn baz(&self) -> bool { self.0 > 5 }
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
11
12 error[E0201]: duplicate definitions with name `Quux`:
13 --> $DIR/E0201.rs:18:5
14 |
15 LL | type Quux;
16 | ---------- item in trait
17 ...
18 LL | type Quux = u32;
19 | ---------------- previous definition here
20 ...
21 LL | type Quux = u32;
22 | ^^^^^^^^^^^^^^^^ duplicate definition
23
24 error[E0592]: duplicate definitions with name `bar`
25 --> $DIR/E0201.rs:5:5
26 |
27 LL | fn bar(&self) -> bool { self.0 > 5 }
28 | --------------------- other definition for `bar`
29 LL | fn bar() {}
30 | ^^^^^^^^ duplicate definitions for `bar`
31
32 error: aborting due to 3 previous errors
33
34 Some errors have detailed explanations: E0201, E0592.
35 For more information about an error, try `rustc --explain E0201`.