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