2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:27:26
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2022-08-31 13:17:32 -05:00
|
|
|
LL | with_signature(a, b, |x, y| {
|
|
|
|
| ^^^^^^
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2023-07-11 16:35:29 -05:00
|
|
|
= note: defining type: no_region::<T>::{closure#0} with closure args [
|
2017-12-04 12:04:38 -06:00
|
|
|
i32,
|
2023-04-21 19:08:38 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'?1 ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2017-12-04 12:04:38 -06:00
|
|
|
]
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: late-bound region is '?2
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 3
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: where T: '?1
|
2017-12-04 12:04:38 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:26:1
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2022-08-31 13:17:32 -05:00
|
|
|
LL | fn no_region<'a, T>(a: Cell<&'a ()>, b: T) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: no_region::<T>
|
2017-12-04 12:04:38 -06:00
|
|
|
|
2018-07-31 07:35:43 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:32:9
|
2018-07-31 07:35:43 -05:00
|
|
|
|
|
2022-10-03 05:45:02 -05:00
|
|
|
LL | require(&x, &y)
|
|
|
|
| ^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | fn no_region<'a, T: 'a>(a: Cell<&'a ()>, b: T) {
|
|
|
|
| ++++
|
2018-07-31 07:35:43 -05:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:42:26
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2022-08-31 13:17:32 -05:00
|
|
|
LL | with_signature(a, b, |x, y| {
|
|
|
|
| ^^^^^^
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2023-07-11 16:35:29 -05:00
|
|
|
= note: defining type: correct_region::<'?1, T>::{closure#0} with closure args [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2023-04-21 19:08:38 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-22 17:46:02 -06:00
|
|
|
]
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 3
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: where T: '?2
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:38:1
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn correct_region<'a, T>(a: Cell<&'a ()>, b: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'a,
|
2022-08-31 13:17:32 -05:00
|
|
|
| |__________^
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: defining type: correct_region::<'?1, T>
|
2017-12-04 12:04:38 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:63:26
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2022-08-31 13:17:32 -05:00
|
|
|
LL | with_signature(a, b, |x, y| {
|
|
|
|
| ^^^^^^
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2023-07-11 16:35:29 -05:00
|
|
|
= note: defining type: wrong_region::<'?1, T>::{closure#0} with closure args [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2023-04-21 19:08:38 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-22 17:46:02 -06:00
|
|
|
]
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: late-bound region is '?3
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 4
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: where T: '?2
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:59:1
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn wrong_region<'a, 'b, T>(a: Cell<&'a ()>, b: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'b,
|
2022-08-31 13:17:32 -05:00
|
|
|
| |__________^
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: defining type: wrong_region::<'?1, T>
|
2017-12-04 12:04:38 -06:00
|
|
|
|
2018-07-31 07:35:43 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:65:9
|
2018-07-31 07:35:43 -05:00
|
|
|
|
|
2022-10-03 05:45:02 -05:00
|
|
|
LL | require(&x, &y)
|
|
|
|
| ^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | T: 'b + 'a,
|
|
|
|
| ++++
|
2018-07-31 07:35:43 -05:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:76:26
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2022-08-31 13:17:32 -05:00
|
|
|
LL | with_signature(a, b, |x, y| {
|
|
|
|
| ^^^^^^
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2023-07-11 16:35:29 -05:00
|
|
|
= note: defining type: outlives_region::<'?1, '?2, T>::{closure#0} with closure args [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2023-04-21 19:08:38 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'?3 ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-22 17:46:02 -06:00
|
|
|
]
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 4
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: where T: '?3
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/ty-param-closure-outlives-from-where-clause.rs:71:1
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn outlives_region<'a, 'b, T>(a: Cell<&'a ()>, b: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'b,
|
|
|
|
LL | | 'b: 'a,
|
2022-08-31 13:17:32 -05:00
|
|
|
| |___________^
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
2023-04-21 19:08:38 -05:00
|
|
|
= note: defining type: outlives_region::<'?1, '?2, T>
|
2017-12-04 12:04:38 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0309`.
|