2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:38:29
|
2017-12-05 12:15:23 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2017-12-05 12:15:23 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: no_relationships_late::<'_#1r, '_#2r, T>::{{closure}}#0 with closure substs [
|
2017-12-05 12:15:23 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2017-12-05 12:15:23 -06:00
|
|
|
]
|
2018-09-07 12:35:16 -05:00
|
|
|
= note: late-bound region is '_#4r
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 5
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: '_#3r
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:34:1
|
2017-12-05 12:15:23 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'c>,
|
|
|
|
LL | | {
|
2018-08-31 12:27:11 -05:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
2017-12-05 12:15:23 -06:00
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: no_relationships_late::<'_#1r, '_#2r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-03-11 17:24:20 -05:00
|
|
|
error[E0309]: the associated type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:38:29
|
2018-07-31 07:35:43 -05:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-03-11 17:24:20 -05:00
|
|
|
= help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: 'a`...
|
2018-07-31 07:35:43 -05:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:48:29
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 17:46:02 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>::{{closure}}#0 with closure substs [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, 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: 5
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:43:1
|
2017-12-05 12:15:23 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'c>,
|
|
|
|
LL | | 'a: 'a,
|
2017-12-05 12:15:23 -06:00
|
|
|
... |
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
2017-12-05 12:15:23 -06:00
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-03-11 17:24:20 -05:00
|
|
|
error[E0309]: the associated type `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:48:29
|
2018-07-31 07:35:43 -05:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-03-11 17:24:20 -05:00
|
|
|
= help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: 'a`...
|
2018-07-31 07:35:43 -05:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:61:29
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 17:46:02 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>::{{closure}}#0 with closure substs [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, 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: 5
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:53:1
|
2017-12-05 12:15:23 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn projection_outlives<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'c>,
|
|
|
|
LL | | T::AssocType: 'a,
|
2017-12-05 12:15:23 -06:00
|
|
|
... |
|
2018-09-24 14:36:50 -05:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
2017-12-05 12:15:23 -06:00
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:70:29
|
2018-02-22 17:46:02 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-02-22 17:46:02 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>::{{closure}}#0 with closure substs [
|
2018-02-22 17:46:02 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, 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: 5
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:65:1
|
2017-12-05 12:15:23 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn elements_outlive1<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'c>,
|
|
|
|
LL | | 'b: 'a,
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | {
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
LL | | }
|
2017-12-05 12:15:23 -06:00
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:79:29
|
2018-02-24 17:59:34 -06:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>::{{closure}}#0 with closure substs [
|
2018-02-24 17:59:34 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-24 17:59:34 -06:00
|
|
|
]
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 5
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:74:1
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
LL | / fn elements_outlive2<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'c>,
|
|
|
|
LL | | 'c: 'a,
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | {
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:87:29
|
2018-02-24 17:59:34 -06:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: two_regions::<'_#1r, T>::{{closure}}#0 with closure substs [
|
2018-02-24 17:59:34 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-24 17:59:34 -06:00
|
|
|
]
|
2018-09-07 12:35:16 -05:00
|
|
|
= note: late-bound region is '_#3r
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 4
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(0, 'b)>>::AssocType: '_#2r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:83:1
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
LL | / fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'b>,
|
|
|
|
LL | | {
|
2018-08-31 12:27:11 -05:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: two_regions::<'_#1r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2018-12-11 15:49:40 -06:00
|
|
|
error: lifetime may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:87:29
|
2018-07-31 07:35:43 -05:00
|
|
|
|
|
2018-08-02 05:00:15 -05:00
|
|
|
LL | fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
2018-07-31 07:35:43 -05:00
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
2018-09-15 12:30:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ closure body requires that `'b` must outlive `'a`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
|
2019-10-27 09:39:14 -05:00
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2018-07-31 07:35:43 -05:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:97:29
|
2018-02-24 17:59:34 -06:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>::{{closure}}#0 with closure substs [
|
2018-02-24 17:59:34 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-24 17:59:34 -06:00
|
|
|
]
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 4
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(1, 'b)>>::AssocType: '_#3r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:92:1
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
LL | / fn two_regions_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'b, 'b>,
|
|
|
|
LL | | 'b: 'a,
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | {
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:109:29
|
2018-02-24 17:59:34 -06:00
|
|
|
|
|
|
|
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: one_region::<'_#1r, T>::{{closure}}#0 with closure substs [
|
2018-02-24 17:59:34 -06:00
|
|
|
i32,
|
2019-04-03 09:30:08 -05:00
|
|
|
extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
|
2020-03-12 20:23:38 -05:00
|
|
|
(),
|
2018-02-24 17:59:34 -06:00
|
|
|
]
|
2018-09-06 21:57:05 -05:00
|
|
|
= note: number of external vids: 3
|
2020-03-11 17:24:20 -05:00
|
|
|
= note: where <T as Anything<ReEarlyBound(0, 'a), ReEarlyBound(0, 'a)>>::AssocType: '_#2r
|
2018-02-22 17:46:02 -06:00
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
note: no external requirements
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/projection-two-region-trait-bound-closure.rs:101:1
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Anything<'a, 'a>,
|
|
|
|
LL | | {
|
|
|
|
... |
|
|
|
|
LL | | with_signature(cell, t, |cell, t| require(cell, t));
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2019-11-30 10:47:21 -06:00
|
|
|
= note: defining type: one_region::<'_#1r, T>
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2018-09-24 14:36:50 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2017-12-05 12:15:23 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0309`.
|