5c540044d6
we already use `instantiate_const_var`. This does lose some debugging info for nll because we stop populating the `reg_var_to_origin` table with `RegionCtxt::Existential(None)`, I don't think that matters however. Supporting this adds additional complexity to one of the most involved parts of the type system, so I really don't think it's worth it.
15 lines
442 B
Plaintext
15 lines
442 B
Plaintext
error: concrete type differs from previous defining opaque type use
|
|
--> $DIR/early_bound.rs:3:29
|
|
|
|
|
LL | fn test<'a: 'a>(n: bool) -> impl Sized + 'a {
|
|
| ^^^^^^^^^^^^^^^ expected `&()`, got `()`
|
|
|
|
|
note: previous use here
|
|
--> $DIR/early_bound.rs:7:36
|
|
|
|
|
LL | let _ = identity::<&'a ()>(test(false));
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|