1 note: External requirements
2 --> $DIR/ty-param-closure-approximate-lower-bound.rs:24:24
4 LL | twice(cell, value, |a, b| invoke(a, b));
7 = note: defining type: DefId(0:11 ~ ty_param_closure_approximate_lower_bound[317d]::generic[0]::{{closure}}[0]) with closure substs [
10 for<'r, 's> extern "rust-call" fn((std::option::Option<std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0), 'r)) ()>>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0), 's)) T)),
12 = note: number of external vids: 2
13 = note: where T: '_#1r
15 note: No external requirements
16 --> $DIR/ty-param-closure-approximate-lower-bound.rs:22:1
18 LL | / fn generic<T>(value: T) {
19 LL | | let cell = Cell::new(&());
20 LL | | twice(cell, value, |a, b| invoke(a, b));
24 = note: defining type: DefId(0:9 ~ ty_param_closure_approximate_lower_bound[317d]::generic[0]) with substs [
28 note: External requirements
29 --> $DIR/ty-param-closure-approximate-lower-bound.rs:29:24
31 LL | twice(cell, value, |a, b| invoke(a, b));
34 = note: defining type: DefId(0:15 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]::{{closure}}[0]) with closure substs [
37 for<'r, 's> extern "rust-call" fn((std::option::Option<std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0), 'r)) ()>>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0), 's)) T)),
39 = note: late-bound region is '_#2r
40 = note: number of external vids: 3
41 = note: where T: '_#1r
43 note: No external requirements
44 --> $DIR/ty-param-closure-approximate-lower-bound.rs:28:1
46 LL | / fn generic_fail<'a, T>(cell: Cell<&'a ()>, value: T) {
47 LL | | twice(cell, value, |a, b| invoke(a, b));
52 = note: defining type: DefId(0:12 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]) with substs [
56 error[E0309]: the parameter type `T` may not live long enough
57 --> $DIR/ty-param-closure-approximate-lower-bound.rs:29:24
59 LL | twice(cell, value, |a, b| invoke(a, b));
62 = help: consider adding an explicit lifetime bound `T: ReFree(DefId(0:12 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]), BrNamed(crate0:DefIndex(13), 'a))`...
64 error: aborting due to previous error
66 For more information about this error, try `rustc --explain E0309`.