|
| 1 | +error: inconsistency during normalizing env `Binder { value: WellFormed(Term::Ty(Alias(Projection, AliasTy { args: [(), 'a/#0], def_id: DefId(0:4 ~ in_assoc_ty_early_bound2[a84a]::Foo::Assoc), .. }))), bound_vars: [] }`, old=Binder { value: WellFormed(Term::Ty(Alias(Projection, AliasTy { args: [(), 'a/#0], def_id: DefId(0:4 ~ in_assoc_ty_early_bound2[a84a]::Foo::Assoc), .. }))), bound_vars: [] }, next=Some( |
| 2 | + Binder { value: WellFormed(Term::Ty(Alias(Opaque, AliasTy { args: ['a/#0, 'a/#0], def_id: DefId(0:11 ~ in_assoc_ty_early_bound2[a84a]::{impl#0}::Assoc::{opaque#0}), .. }))), bound_vars: [] }, |
| 3 | + ) |
| 4 | + --> $DIR/in-assoc-ty-early-bound2.rs:10:5 |
| 5 | + | |
| 6 | +LL | / fn bar<'a: 'a>() |
| 7 | +LL | | |
| 8 | +LL | | where |
| 9 | +LL | | Self::Assoc<'a>:, |
| 10 | + | |_________________________^ |
| 11 | + |
| 12 | +error: inconsistency during normalizing env `Binder { value: WellFormed(Term::Ty(Alias(Projection, AliasTy { args: [(), 'a/#0], def_id: DefId(0:4 ~ in_assoc_ty_early_bound2[a84a]::Foo::Assoc), .. }))), bound_vars: [] }`, old=Binder { value: WellFormed(Term::Ty(Alias(Projection, AliasTy { args: [(), 'a/#0], def_id: DefId(0:4 ~ in_assoc_ty_early_bound2[a84a]::Foo::Assoc), .. }))), bound_vars: [] }, next=Some( |
| 13 | + Binder { value: WellFormed(Term::Ty(Alias(Opaque, AliasTy { args: ['a/#0, 'a/#0], def_id: DefId(0:11 ~ in_assoc_ty_early_bound2[a84a]::{impl#0}::Assoc::{opaque#0}), .. }))), bound_vars: [] }, |
| 14 | + ) |
| 15 | + --> $DIR/in-assoc-ty-early-bound2.rs:15:17 |
| 16 | + | |
| 17 | +LL | let _ = |x: &'a ()| { |
| 18 | + | ^^^^^^^^^^^ |
| 19 | + |
1 | 20 | error[E0792]: expected generic lifetime parameter, found `'_` |
2 | | - --> $DIR/in-assoc-ty-early-bound2.rs:15:20 |
| 21 | + --> $DIR/in-assoc-ty-early-bound2.rs:17:20 |
3 | 22 | | |
4 | 23 | LL | type Assoc<'a> = impl Sized; |
5 | 24 | | -- this generic parameter must be used with a generic lifetime parameter |
6 | 25 | ... |
7 | 26 | LL | let _: Self::Assoc<'a> = x; |
8 | 27 | | ^^^^^^^^^^^^^^^ |
9 | 28 |
|
10 | | -error: aborting due to 1 previous error |
| 29 | +error: aborting due to 3 previous errors |
11 | 30 |
|
12 | 31 | For more information about this error, try `rustc --explain E0792`. |
0 commit comments