summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/erased-regions-in-hidden-ty.next.stderr
blob: 4cd4febc4f0a14d59201f914aaf8ca609f786ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: {foo<ReEarlyParam(DefId(..), 0, 'a)>::{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:11:36
   |
LL | fn foo<'a: 'a>(x: &'a Vec<i32>) -> impl Fn() + 'static {
   |                                    ^^^^^^^^^^^^^^^^^^^

error: Opaque(DefId(..), [ReErased])
  --> $DIR/erased-regions-in-hidden-ty.rs:17:13
   |
LL | fn bar() -> impl Fn() + 'static {
   |             ^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors