]> git.lizzy.rs Git - rust.git/blob - src/test/ui/marker_trait_attr/region-overlap.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / marker_trait_attr / region-overlap.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/region-overlap.rs:5:10
3    |
4 LL | impl<'a> A for (&'static (), &'a ()) {}
5    |          ^ cannot infer type for tuple `(&'static (), &'a ())`
6    |
7 note: multiple `impl`s satisfying `(&'static (), &'a ()): A` found
8   --> $DIR/region-overlap.rs:5:1
9    |
10 LL | impl<'a> A for (&'static (), &'a ()) {}
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 LL | impl<'a> A for (&'a (), &'static ()) {}
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error[E0283]: type annotations needed
16   --> $DIR/region-overlap.rs:6:10
17    |
18 LL | impl<'a> A for (&'a (), &'static ()) {}
19    |          ^ cannot infer type for tuple `(&'a (), &'static ())`
20    |
21 note: multiple `impl`s satisfying `(&'a (), &'static ()): A` found
22   --> $DIR/region-overlap.rs:5:1
23    |
24 LL | impl<'a> A for (&'static (), &'a ()) {}
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 LL | impl<'a> A for (&'a (), &'static ()) {}
27    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0283`.