2024-03-18 08:33:24 +00:00
|
|
|
error: {foo<'{erased}>::{closure#0} closure_kind_ty=i8 closure_sig_as_fn_ptr_ty=extern "rust-call" fn(()) upvar_tys=()}
|
2024-03-11 01:18:41 +00:00
|
|
|
--> $DIR/erased-regions-in-hidden-ty.rs:12:36
|
2023-10-04 23:08:05 +00:00
|
|
|
|
|
|
|
|
LL | fn foo<'a: 'a>(x: &'a Vec<i32>) -> impl Fn() + 'static {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-03-12 15:53:35 +00:00
|
|
|
error: Opaque(DefId(..), ['{erased}])
|
2024-03-11 01:18:41 +00:00
|
|
|
--> $DIR/erased-regions-in-hidden-ty.rs:18:13
|
2023-10-04 23:08:05 +00:00
|
|
|
|
|
|
|
|
LL | fn bar() -> impl Fn() + 'static {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|