|
| 1 | +error[E0582]: binding for associated type `Assoc` references lifetime `'a`, which does not appear in the trait input types |
| 2 | + --> $DIR/ice-wf-missing-span-in-error-130012.rs:9:28 |
| 3 | + | |
| 4 | +LL | trait MyTrait: for<'a> Fun<Assoc = &'a ()> {} |
| 5 | + | ^^^^^^^^^^^^^^ |
| 6 | + |
| 7 | +error[E0582]: binding for associated type `Assoc` references lifetime `'a`, which does not appear in the trait input types |
| 8 | + --> $DIR/ice-wf-missing-span-in-error-130012.rs:9:28 |
| 9 | + | |
| 10 | +LL | trait MyTrait: for<'a> Fun<Assoc = &'a ()> {} |
| 11 | + | ^^^^^^^^^^^^^^ |
| 12 | + | |
| 13 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 14 | + |
| 15 | +error[E0582]: binding for associated type `Assoc` references lifetime `'a`, which does not appear in the trait input types |
| 16 | + --> $DIR/ice-wf-missing-span-in-error-130012.rs:9:28 |
| 17 | + | |
| 18 | +LL | trait MyTrait: for<'a> Fun<Assoc = &'a ()> {} |
| 19 | + | ^^^^^^^^^^^^^^ |
| 20 | + | |
| 21 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 22 | + |
| 23 | +error[E0582]: binding for associated type `Assoc` references lifetime `'b`, which does not appear in the trait input types |
| 24 | + --> $DIR/ice-wf-missing-span-in-error-130012.rs:14:21 |
| 25 | + | |
| 26 | +LL | impl<F: for<'b> Fun<Assoc = &'b ()>> MyTrait for F {} |
| 27 | + | ^^^^^^^^^^^^^^ |
| 28 | + |
| 29 | +error[E0308]: mismatched types |
| 30 | + --> $DIR/ice-wf-missing-span-in-error-130012.rs:14:50 |
| 31 | + | |
| 32 | +LL | impl<F: for<'b> Fun<Assoc = &'b ()>> MyTrait for F {} |
| 33 | + | ^ lifetime mismatch |
| 34 | + | |
| 35 | + = note: expected reference `&()` |
| 36 | + found reference `&'b ()` |
| 37 | + |
| 38 | +error: aborting due to 5 previous errors |
| 39 | + |
| 40 | +Some errors have detailed explanations: E0308, E0582. |
| 41 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments