2017-12-05 13:15:23 -05:00
|
|
|
note: External requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/projection-one-region-closure.rs:55:29
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2017-12-05 13:15:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:19 ~ projection_one_region_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
|
|
|
|
'_#1r,
|
|
|
|
T,
|
|
|
|
i32,
|
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T))
|
|
|
|
]
|
2018-07-27 22:46:16 +01:00
|
|
|
= note: number of external vids: 5
|
2017-12-05 13:15:23 -05:00
|
|
|
= note: where T: '_#2r
|
|
|
|
= note: where '_#1r: '_#2r
|
|
|
|
|
|
|
|
note: No external requirements
|
2018-04-13 19:21:23 -05:00
|
|
|
--> $DIR/projection-one-region-closure.rs:51:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b>,
|
|
|
|
LL | | {
|
2017-12-05 13:15:23 -05:00
|
|
|
... |
|
2018-07-03 11:38:09 -04:00
|
|
|
LL | | //~| ERROR
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | }
|
2017-12-05 13:15:23 -05:00
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:8 ~ projection_one_region_closure[317d]::no_relationships_late[0]) with substs [
|
|
|
|
'_#1r,
|
|
|
|
T
|
|
|
|
]
|
|
|
|
|
2018-07-31 14:35:43 +02:00
|
|
|
error: unsatisfied lifetime constraints
|
|
|
|
--> $DIR/projection-one-region-closure.rs:55:5
|
|
|
|
|
|
2018-08-02 12:00:15 +02:00
|
|
|
LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
2018-07-31 14:35:43 +02:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
|
|
|
--> $DIR/projection-one-region-closure.rs:55:29
|
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding an explicit lifetime bound `T: ReFree(DefId(0/0:8 ~ projection_one_region_closure[317d]::no_relationships_late[0]), BrNamed(crate0:DefIndex(1:16), 'a))`...
|
|
|
|
|
2018-02-22 18:46:02 -05:00
|
|
|
note: External requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:66:29
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 18:46:02 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:23 ~ projection_one_region_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T,
|
|
|
|
i32,
|
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
|
|
|
|
]
|
2018-07-27 22:46:16 +01:00
|
|
|
= note: number of external vids: 5
|
2018-02-22 18:46:02 -05:00
|
|
|
= note: where T: '_#3r
|
|
|
|
= note: where '_#2r: '_#3r
|
|
|
|
|
2017-12-05 13:15:23 -05:00
|
|
|
note: No external requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:61:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b>,
|
|
|
|
LL | | 'a: 'a,
|
2017-12-05 13:15:23 -05:00
|
|
|
... |
|
2018-07-03 11:38:09 -04:00
|
|
|
LL | | //~| ERROR
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | }
|
2017-12-05 13:15:23 -05:00
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:9 ~ projection_one_region_closure[317d]::no_relationships_early[0]) with substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T
|
|
|
|
]
|
|
|
|
|
2018-07-31 14:35:43 +02:00
|
|
|
error: unsatisfied lifetime constraints
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:66:5
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
2018-08-02 12:00:15 +02:00
|
|
|
LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
2018-07-31 14:35:43 +02:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:66:29
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
|
|
|
|
|
2018-02-22 18:46:02 -05:00
|
|
|
note: External requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:87:29
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 18:46:02 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:27 ~ projection_one_region_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T,
|
|
|
|
i32,
|
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
|
|
|
|
]
|
2018-07-27 22:46:16 +01:00
|
|
|
= note: number of external vids: 5
|
2018-02-22 18:46:02 -05:00
|
|
|
= note: where T: '_#3r
|
|
|
|
= note: where '_#2r: '_#3r
|
|
|
|
|
2017-12-05 13:15:23 -05:00
|
|
|
note: No external requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:72:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b>,
|
|
|
|
LL | | T::AssocType: 'a,
|
2017-12-05 13:15:23 -05:00
|
|
|
... |
|
2018-07-03 11:38:09 -04:00
|
|
|
LL | | //~| ERROR
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | }
|
2017-12-05 13:15:23 -05:00
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:10 ~ projection_one_region_closure[317d]::projection_outlives[0]) with substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T
|
|
|
|
]
|
|
|
|
|
2018-07-31 14:35:43 +02:00
|
|
|
error: unsatisfied lifetime constraints
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:87:5
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
2018-08-02 12:00:15 +02:00
|
|
|
LL | fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
2018-07-31 14:35:43 +02:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:87:29
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
|
|
|
|
|
2018-02-22 18:46:02 -05:00
|
|
|
note: External requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:99:29
|
2018-02-25 02:59:34 +03:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/1:31 ~ projection_one_region_closure[317d]::elements_outlive[0]::{{closure}}[0]) with closure substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T,
|
|
|
|
i32,
|
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
|
|
|
|
]
|
2018-07-27 22:46:16 +01:00
|
|
|
= note: number of external vids: 5
|
2018-02-25 02:59:34 +03:00
|
|
|
= note: where T: '_#3r
|
|
|
|
= note: where '_#2r: '_#3r
|
2018-02-22 18:46:02 -05:00
|
|
|
|
2017-12-05 13:15:23 -05:00
|
|
|
note: No external requirements
|
2018-08-31 19:27:11 +02:00
|
|
|
--> $DIR/projection-one-region-closure.rs:93:1
|
2018-02-23 03:42:32 +03:00
|
|
|
|
|
|
|
|
LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b>,
|
|
|
|
LL | | T: 'a,
|
|
|
|
... |
|
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: defining type: DefId(0/0:11 ~ projection_one_region_closure[317d]::elements_outlive[0]) with substs [
|
|
|
|
'_#1r,
|
|
|
|
'_#2r,
|
|
|
|
T
|
|
|
|
]
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0309`.
|