fork/rust

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

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

master
1.3 KiB47 linesraw
1error[E0592]: duplicate definitions with name `hello`
2  --> $DIR/overlap.rs:20:12
3   |
4LL | impl Foo { fn hello() {} }
5   |            ^^^^^^^^^^ duplicate definitions for `hello`
6LL | impl Foo { fn hello() {} }
7   |            ---------- other definition for `hello`
8
9error[E0592]: duplicate definitions with name `hello2`
10  --> $DIR/overlap.rs:31:5
11   |
12LL |     fn hello2() {}
13   |     ^^^^^^^^^^^ duplicate definitions for `hello2`
14...
15LL |     fn hello2() {}
16   |     ----------- other definition for `hello2`
17
18error[E0592]: duplicate definitions with name `bar`
19  --> $DIR/overlap.rs:46:5
20   |
21LL |     fn bar() {}
22   |     ^^^^^^^^ duplicate definitions for `bar`
23...
24LL |     fn bar() {}
25   |     -------- other definition for `bar`
26
27error[E0592]: duplicate definitions with name `hello3`
28  --> $DIR/overlap.rs:47:5
29   |
30LL |     fn hello3() {}
31   |     ^^^^^^^^^^^ duplicate definitions for `hello3`
32...
33LL |     fn hello3() {}
34   |     ----------- other definition for `hello3`
35
36error[E0592]: duplicate definitions with name `bar2`
37  --> $DIR/overlap.rs:67:5
38   |
39LL |     fn bar2() {}
40   |     ^^^^^^^^^ duplicate definitions for `bar2`
41LL | }
42LL | impl Bar<B> { fn bar2() {} }
43   |               --------- other definition for `bar2`
44
45error: aborting due to 5 previous errors
46
47For more information about this error, try `rustc --explain E0592`.