fork/rust

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

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

master
1.1 KiB31 linesraw
1error[E0283]: type annotations needed: cannot satisfy `&'static (): Marker`
2  --> $DIR/overlap-marker-trait-with-static-lifetime.rs:11:17
3   |
4LL | impl Marker for &'static () {}
5   |                 ^^^^^^^^^^^
6   |
7note: multiple `impl`s satisfying `&'static (): Marker` found
8  --> $DIR/overlap-marker-trait-with-static-lifetime.rs:11:1
9   |
10LL | impl Marker for &'static () {}
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12LL | impl Marker for &'static () {}
13   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error[E0283]: type annotations needed: cannot satisfy `&'static (): Marker`
16  --> $DIR/overlap-marker-trait-with-static-lifetime.rs:12:17
17   |
18LL | impl Marker for &'static () {}
19   |                 ^^^^^^^^^^^
20   |
21note: multiple `impl`s satisfying `&'static (): Marker` found
22  --> $DIR/overlap-marker-trait-with-static-lifetime.rs:11:1
23   |
24LL | impl Marker for &'static () {}
25   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
26LL | impl Marker for &'static () {}
27   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0283`.