mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
15 lines
512 B
Plaintext
15 lines
512 B
Plaintext
error: {foo<DefId(..)_'a/#0>::{closure#0} closure_kind_ty=i8 closure_sig_as_fn_ptr_ty=extern "rust-call" fn(()) upvar_tys=()}
|
|
--> $DIR/erased-regions-in-hidden-ty.rs:12:36
|
|
|
|
|
LL | fn foo<'a: 'a>(x: &'a Vec<i32>) -> impl Fn() + 'static {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Opaque(DefId(..), ['{erased}])
|
|
--> $DIR/erased-regions-in-hidden-ty.rs:18:13
|
|
|
|
|
LL | fn bar() -> impl Fn() + 'static {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|