2018-04-09 04:28:00 -05:00
|
|
|
warning: not reporting region error due to nll
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:34:31
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
2017-12-08 14:47:36 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2018-04-09 04:28:00 -05:00
|
|
|
warning: not reporting region error due to nll
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:42:31
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
2017-12-08 14:47:36 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
2018-04-09 04:28:00 -05:00
|
|
|
warning: not reporting region error due to nll
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:42:31
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
2017-12-08 14:47:36 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
note: External requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:34:24
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
2017-12-08 14:47:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:14 ~ ty_param_closure_approximate_lower_bound[317d]::generic[0]::{{closure}}[0]) with closure substs [
|
|
|
|
T,
|
|
|
|
i16,
|
2018-06-10 08:29:43 -05:00
|
|
|
for<'r, 's> extern "rust-call" fn((std::option::Option<std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 'r)) ()>>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) T))
|
2017-12-08 14:47:36 -06:00
|
|
|
]
|
2018-07-27 16:46:16 -05:00
|
|
|
= note: number of external vids: 3
|
2017-12-08 14:47:36 -06:00
|
|
|
= note: where T: '_#1r
|
|
|
|
|
|
|
|
note: No external requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:32:1
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn generic<T>(value: T) {
|
|
|
|
LL | | let cell = Cell::new(&());
|
|
|
|
LL | | twice(cell, value, |a, b| invoke(a, b));
|
|
|
|
LL | | //~^ WARNING not reporting region error
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | //
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | // This error from the old region solver looks bogus.
|
|
|
|
LL | | }
|
2017-12-08 14:47:36 -06:00
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:5 ~ ty_param_closure_approximate_lower_bound[317d]::generic[0]) with substs [
|
|
|
|
T
|
|
|
|
]
|
|
|
|
|
2018-02-22 17:46:02 -06:00
|
|
|
note: External requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:42:24
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
2018-02-22 17:46:02 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:17 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]::{{closure}}[0]) with closure substs [
|
|
|
|
T,
|
|
|
|
i16,
|
2018-06-10 08:29:43 -05:00
|
|
|
for<'r, 's> extern "rust-call" fn((std::option::Option<std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 'r)) ()>>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) T))
|
2018-02-22 17:46:02 -06:00
|
|
|
]
|
2018-07-27 16:46:16 -05:00
|
|
|
= note: number of external vids: 4
|
2018-02-22 17:46:02 -06:00
|
|
|
= note: where T: '_#1r
|
|
|
|
|
2017-12-08 14:47:36 -06:00
|
|
|
note: No external requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:41:1
|
2017-12-08 14:47:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn generic_fail<'a, T>(cell: Cell<&'a ()>, value: T) {
|
|
|
|
LL | | twice(cell, value, |a, b| invoke(a, b));
|
|
|
|
LL | | //~^ WARNING not reporting region error
|
|
|
|
LL | | //~| WARNING not reporting region error
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | //~| ERROR the parameter type `T` may not live long enough
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
2017-12-08 14:47:36 -06:00
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:6 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]) with substs [
|
|
|
|
T
|
|
|
|
]
|
|
|
|
|
2018-07-31 07:35:43 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
|
|
|
--> $DIR/ty-param-closure-approximate-lower-bound.rs:42:24
|
|
|
|
|
|
|
|
|
LL | twice(cell, value, |a, b| invoke(a, b));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding an explicit lifetime bound `T: ReFree(DefId(0/0:6 ~ ty_param_closure_approximate_lower_bound[317d]::generic_fail[0]), BrNamed(crate0:DefIndex(1:15), 'a))`...
|
|
|
|
|
2017-12-08 14:47:36 -06:00
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0309`.
|