fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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