]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / projection-one-region-trait-bound-closure.stderr
CommitLineData
dfeec247 1note: external requirements
0731742a 2 --> $DIR/projection-one-region-trait-bound-closure.rs:37:29
ff7c6d11 3 |
0531ce1d 4LL | with_signature(cell, t, |cell, t| require(cell, t));
ff7c6d11
XL
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
1b1a35ee 7 = note: defining type: no_relationships_late::<'_#1r, T>::{closure#0} with closure substs [
ff7c6d11 8 i32,
532ac7d7 9 extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
ba9703b0 10 (),
ff7c6d11 11 ]
b7449926
XL
12 = note: late-bound region is '_#3r
13 = note: number of external vids: 4
ff7c6d11
XL
14 = note: where '_#1r: '_#2r
15
dfeec247 16note: no external requirements
0731742a 17 --> $DIR/projection-one-region-trait-bound-closure.rs:33:1
0531ce1d
XL
18 |
19LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
20LL | | where
21LL | | T: Anything<'b>,
22LL | | {
b7449926 23LL | | with_signature(cell, t, |cell, t| require(cell, t));
532ac7d7 24LL | |
0531ce1d
XL
25LL | | }
26 | |_^
27 |
60c5eb7d 28 = note: defining type: no_relationships_late::<'_#1r, T>
0531ce1d 29
9fa01778 30error: lifetime may not live long enough
0731742a 31 --> $DIR/projection-one-region-trait-bound-closure.rs:37:39
b7449926
XL
32 |
33LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
34 | -- -- lifetime `'b` defined here
35 | |
36 | lifetime `'a` defined here
37...
38LL | with_signature(cell, t, |cell, t| require(cell, t));
0bf4aa26 39 | ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
60c5eb7d
XL
40 |
41 = help: consider adding the following bound: `'b: 'a`
b7449926 42
dfeec247 43note: external requirements
0731742a 44 --> $DIR/projection-one-region-trait-bound-closure.rs:47:29
ff7c6d11 45 |
0531ce1d 46LL | with_signature(cell, t, |cell, t| require(cell, t));
ff7c6d11
XL
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
48 |
1b1a35ee 49 = note: defining type: no_relationships_early::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
ff7c6d11 50 i32,
532ac7d7 51 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
ba9703b0 52 (),
ff7c6d11 53 ]
b7449926 54 = note: number of external vids: 4
ff7c6d11
XL
55 = note: where '_#2r: '_#3r
56
dfeec247 57note: no external requirements
0731742a 58 --> $DIR/projection-one-region-trait-bound-closure.rs:42:1
ff7c6d11 59 |
0531ce1d
XL
60LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
61LL | | where
62LL | | T: Anything<'b>,
63LL | | 'a: 'a,
64... |
532ac7d7 65LL | |
0531ce1d
XL
66LL | | }
67 | |_^
68 |
60c5eb7d 69 = note: defining type: no_relationships_early::<'_#1r, '_#2r, T>
ff7c6d11 70
9fa01778 71error: lifetime may not live long enough
0731742a 72 --> $DIR/projection-one-region-trait-bound-closure.rs:47:39
b7449926
XL
73 |
74LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
75 | -- -- lifetime `'b` defined here
76 | |
77 | lifetime `'a` defined here
78...
79LL | with_signature(cell, t, |cell, t| require(cell, t));
0bf4aa26 80 | ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
60c5eb7d
XL
81 |
82 = help: consider adding the following bound: `'b: 'a`
b7449926 83
dfeec247 84note: external requirements
0731742a 85 --> $DIR/projection-one-region-trait-bound-closure.rs:60:29
ff7c6d11 86 |
0531ce1d 87LL | with_signature(cell, t, |cell, t| require(cell, t));
ff7c6d11
XL
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
89 |
1b1a35ee 90 = note: defining type: projection_outlives::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
ff7c6d11 91 i32,
532ac7d7 92 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
ba9703b0 93 (),
ff7c6d11 94 ]
b7449926 95 = note: number of external vids: 4
ba9703b0 96 = note: where <T as Anything<ReEarlyBound(1, 'b)>>::AssocType: '_#3r
ff7c6d11 97
dfeec247 98note: no external requirements
0731742a 99 --> $DIR/projection-one-region-trait-bound-closure.rs:52:1
ff7c6d11 100 |
0531ce1d
XL
101LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
102LL | | where
103LL | | T: Anything<'b>,
104LL | | T::AssocType: 'a,
ff7c6d11 105... |
0bf4aa26 106LL | | with_signature(cell, t, |cell, t| require(cell, t));
0531ce1d 107LL | | }
ff7c6d11
XL
108 | |_^
109 |
60c5eb7d 110 = note: defining type: projection_outlives::<'_#1r, '_#2r, T>
ff7c6d11 111
dfeec247 112note: external requirements
0731742a 113 --> $DIR/projection-one-region-trait-bound-closure.rs:69:29
ff7c6d11 114 |
0531ce1d
XL
115LL | with_signature(cell, t, |cell, t| require(cell, t));
116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
117 |
1b1a35ee 118 = note: defining type: elements_outlive::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
0531ce1d 119 i32,
532ac7d7 120 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
ba9703b0 121 (),
0531ce1d 122 ]
b7449926 123 = note: number of external vids: 4
0531ce1d 124 = note: where '_#2r: '_#3r
ff7c6d11 125
dfeec247 126note: no external requirements
0731742a 127 --> $DIR/projection-one-region-trait-bound-closure.rs:64:1
ff7c6d11 128 |
0531ce1d
XL
129LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
130LL | | where
131LL | | T: Anything<'b>,
132LL | | 'b: 'a,
133LL | | {
134LL | | with_signature(cell, t, |cell, t| require(cell, t));
135LL | | }
ff7c6d11
XL
136 | |_^
137 |
60c5eb7d 138 = note: defining type: elements_outlive::<'_#1r, '_#2r, T>
ff7c6d11 139
dfeec247 140note: external requirements
0731742a 141 --> $DIR/projection-one-region-trait-bound-closure.rs:81:29
ff7c6d11 142 |
0531ce1d
XL
143LL | with_signature(cell, t, |cell, t| require(cell, t));
144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
ff7c6d11 145 |
1b1a35ee 146 = note: defining type: one_region::<'_#1r, T>::{closure#0} with closure substs [
0531ce1d 147 i32,
532ac7d7 148 extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
ba9703b0 149 (),
ff7c6d11 150 ]
b7449926 151 = note: number of external vids: 3
0531ce1d 152 = note: where '_#1r: '_#2r
ff7c6d11 153
dfeec247 154note: no external requirements
0731742a 155 --> $DIR/projection-one-region-trait-bound-closure.rs:73:1
ff7c6d11 156 |
0531ce1d
XL
157LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
158LL | | where
159LL | | T: Anything<'a>,
160LL | | {
161... |
162LL | | with_signature(cell, t, |cell, t| require(cell, t));
163LL | | }
ff7c6d11
XL
164 | |_^
165 |
60c5eb7d 166 = note: defining type: one_region::<'_#1r, T>
ff7c6d11 167
0bf4aa26 168error: aborting due to 2 previous errors
ff7c6d11 169