rust/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr

334 lines
12 KiB
Plaintext
Raw Normal View History

warning: not reporting region error due to nll
--> $DIR/projection-two-region-trait-bound-closure.rs:48:39
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
| ^^^^^^^
warning: not reporting region error due to nll
--> $DIR/projection-two-region-trait-bound-closure.rs:59:39
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
| ^^^^^^^
warning: not reporting region error due to nll
--> $DIR/projection-two-region-trait-bound-closure.rs:80:39
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
| ^^^^^^^
warning: not reporting region error due to nll
--> $DIR/projection-two-region-trait-bound-closure.rs:108:39
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
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:48: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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:22 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 6
2017-12-05 12:15:23 -06:00
= note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#2r)>>::AssocType: '_#3r
2018-07-27 16:46:16 -05:00
error[E0309]: the associated type `<T as Anything<'_#6r, '_#7r>>::AssocType` may not live long enough
--> $DIR/projection-two-region-trait-bound-closure.rs:48: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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-07-27 16:46:16 -05:00
= help: consider adding an explicit lifetime bound `<T as Anything<'_#6r, '_#7r>>::AssocType: ReFree(DefId(0/0:8 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]), BrNamed(crate0:DefIndex(1:18), 'a))`...
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:44: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 | | {
2017-12-05 12:15:23 -06:00
... |
2018-07-27 16:46:16 -05:00
LL | | //~| ERROR associated type `<T as Anything<'_#6r, '_#7r>>::AssocType` may not live long enough
2018-02-22 18:42:32 -06:00
LL | | }
2017-12-05 12:15:23 -06:00
| |_^
|
= note: defining type: DefId(0/0:8 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]) with substs [
'_#1r,
'_#2r,
T
]
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:59:29
|
2018-02-24 17:59:34 -06:00
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:27 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
'_#3r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 6
= note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
2018-07-27 16:46:16 -05:00
error[E0309]: the associated type `<T as Anything<'_#7r, '_#8r>>::AssocType` may not live long enough
--> $DIR/projection-two-region-trait-bound-closure.rs:59: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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-07-27 16:46:16 -05:00
= help: consider adding an explicit lifetime bound `<T as Anything<'_#7r, '_#8r>>::AssocType: ReEarlyBound(0, 'a)`...
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:54: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
... |
2018-07-27 16:46:16 -05:00
LL | | //~| ERROR associated type `<T as Anything<'_#7r, '_#8r>>::AssocType` may not live long enough
2018-02-22 18:42:32 -06:00
LL | | }
2017-12-05 12:15:23 -06:00
| |_^
|
= note: defining type: DefId(0/0:9 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_early[0]) with substs [
'_#1r,
'_#2r,
'_#3r,
T
]
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:80:29
|
2018-02-24 17:59:34 -06:00
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:32 ~ projection_two_region_trait_bound_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
'_#3r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 6
= note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
2018-07-27 16:46:16 -05:00
error[E0309]: the associated type `<T as Anything<'_#7r, '_#8r>>::AssocType` may not live long enough
--> $DIR/projection-two-region-trait-bound-closure.rs:80: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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-07-27 16:46:16 -05:00
= help: consider adding an explicit lifetime bound `<T as Anything<'_#7r, '_#8r>>::AssocType: ReEarlyBound(0, 'a)`...
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $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 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-07-27 16:46:16 -05:00
LL | | //~| ERROR associated type `<T as Anything<'_#7r, '_#8r>>::AssocType` may not live long enough
2018-02-22 18:42:32 -06:00
LL | | }
2017-12-05 12:15:23 -06:00
| |_^
|
= note: defining type: DefId(0/0:10 ~ projection_two_region_trait_bound_closure[317d]::projection_outlives[0]) with substs [
'_#1r,
'_#2r,
'_#3r,
T
]
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:91:29
|
2018-02-24 17:59:34 -06:00
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:37 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive1[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
'_#3r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 6
= note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:86: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
| |_^
|
= note: defining type: DefId(0/0:11 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive1[0]) with substs [
'_#1r,
'_#2r,
'_#3r,
T
]
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:100:29
2018-02-24 17:59:34 -06:00
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:42 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive2[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
'_#3r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 6
2018-02-24 17:59:34 -06:00
= note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:95: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 | | }
| |_^
|
= note: defining type: DefId(0/0:12 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive2[0]) with substs [
'_#1r,
'_#2r,
'_#3r,
T
]
2017-12-05 12:15:23 -06:00
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:108:29
2018-02-24 17:59:34 -06:00
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:46 ~ projection_two_region_trait_bound_closure[317d]::two_regions[0]::{{closure}}[0]) with closure substs [
'_#1r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 5
2018-02-24 17:59:34 -06:00
= note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#1r)>>::AssocType: '_#2r
error: unsatisfied lifetime constraints
2018-06-26 17:30:52 -05:00
--> $DIR/projection-two-region-trait-bound-closure.rs:108:5
2018-02-22 18:42:32 -06:00
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:104: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 | | {
... |
LL | | //~| ERROR
2018-02-22 18:42:32 -06:00
LL | | }
| |_^
|
= note: defining type: DefId(0/0:13 ~ projection_two_region_trait_bound_closure[317d]::two_regions[0]) with substs [
'_#1r,
T
]
2017-12-05 12:15:23 -06:00
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:119:29
2018-02-24 17:59:34 -06:00
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:50 ~ projection_two_region_trait_bound_closure[317d]::two_regions_outlive[0]::{{closure}}[0]) with closure substs [
'_#1r,
'_#2r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 5
2018-02-24 17:59:34 -06:00
= note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#2r)>>::AssocType: '_#3r
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:114: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 | | }
| |_^
|
= note: defining type: DefId(0/0:14 ~ projection_two_region_trait_bound_closure[317d]::two_regions_outlive[0]) with substs [
'_#1r,
'_#2r,
T
]
2017-12-05 12:15:23 -06:00
note: External requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:131:29
2018-02-24 17:59:34 -06:00
|
LL | with_signature(cell, t, |cell, t| require(cell, t));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: defining type: DefId(0/1:53 ~ projection_two_region_trait_bound_closure[317d]::one_region[0]::{{closure}}[0]) with closure substs [
'_#1r,
T,
i32,
extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T))
]
2018-07-27 16:46:16 -05:00
= note: number of external vids: 4
2018-02-24 17:59:34 -06:00
= note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#1r)>>::AssocType: '_#2r
2017-12-05 12:15:23 -06:00
note: No external requirements
--> $DIR/projection-two-region-trait-bound-closure.rs:123: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 | | }
| |_^
|
= note: defining type: DefId(0/0:15 ~ projection_two_region_trait_bound_closure[317d]::one_region[0]) with substs [
'_#1r,
T
]
2017-12-05 12:15:23 -06:00
error: aborting due to 4 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0309`.