projection-one-region-trait-bound-closure.stderr 6.5 KB
Newer Older
N
Niko Matsakis 已提交
1
note: External requirements
2
  --> $DIR/projection-one-region-trait-bound-closure.rs:47:29
N
Niko Matsakis 已提交
3
   |
V
Vadim Petrochenkov 已提交
4
LL |     with_signature(cell, t, |cell, t| require(cell, t));
N
Niko Matsakis 已提交
5 6 7 8 9 10 11 12
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: DefId(0/1:19 ~ projection_one_region_trait_bound_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
               '_#1r,
               T,
               i32,
               extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T))
           ]
13
   = note: late-bound region is '_#3r
W
Wesley Wiser 已提交
14
   = note: number of external vids: 4
N
Niko Matsakis 已提交
15 16 17
   = note: where '_#1r: '_#2r

note: No external requirements
18
  --> $DIR/projection-one-region-trait-bound-closure.rs:43:1
N
Niko Matsakis 已提交
19
   |
V
Vadim Petrochenkov 已提交
20 21 22 23
LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
LL | | where
LL | |     T: Anything<'b>,
LL | | {
B
Basile Desloges 已提交
24 25
LL | |     with_signature(cell, t, |cell, t| require(cell, t));
LL | |     //~^ ERROR
V
Vadim Petrochenkov 已提交
26
LL | | }
N
Niko Matsakis 已提交
27 28 29 30 31 32 33
   | |_^
   |
   = note: defining type: DefId(0/0:8 ~ projection_one_region_trait_bound_closure[317d]::no_relationships_late[0]) with substs [
               '_#1r,
               T
           ]

34
error: unsatisfied lifetime constraints
35
  --> $DIR/projection-one-region-trait-bound-closure.rs:47:39
36
   |
37 38 39 40 41
LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
   |                          --  -- lifetime `'b` defined here
   |                          |
   |                          lifetime `'a` defined here
...
42
LL |     with_signature(cell, t, |cell, t| require(cell, t));
43
   |                                       ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
44

N
Niko Matsakis 已提交
45
note: External requirements
B
Basile Desloges 已提交
46
  --> $DIR/projection-one-region-trait-bound-closure.rs:57:29
N
Niko Matsakis 已提交
47
   |
V
Vadim Petrochenkov 已提交
48
LL |     with_signature(cell, t, |cell, t| require(cell, t));
N
Niko Matsakis 已提交
49 50 51 52 53 54 55 56 57
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: DefId(0/1:23 ~ projection_one_region_trait_bound_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
               '_#1r,
               '_#2r,
               T,
               i32,
               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
           ]
W
Wesley Wiser 已提交
58
   = note: number of external vids: 4
N
Niko Matsakis 已提交
59 60
   = note: where '_#2r: '_#3r

N
Niko Matsakis 已提交
61
note: No external requirements
B
Basile Desloges 已提交
62
  --> $DIR/projection-one-region-trait-bound-closure.rs:52:1
N
Niko Matsakis 已提交
63
   |
V
Vadim Petrochenkov 已提交
64 65 66 67
LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
LL | | where
LL | |     T: Anything<'b>,
LL | |     'a: 'a,
N
Niko Matsakis 已提交
68
...  |
B
Basile Desloges 已提交
69
LL | |     //~^ ERROR
V
Vadim Petrochenkov 已提交
70
LL | | }
N
Niko Matsakis 已提交
71 72 73 74 75 76 77 78
   | |_^
   |
   = note: defining type: DefId(0/0:9 ~ projection_one_region_trait_bound_closure[317d]::no_relationships_early[0]) with substs [
               '_#1r,
               '_#2r,
               T
           ]

79
error: unsatisfied lifetime constraints
80
  --> $DIR/projection-one-region-trait-bound-closure.rs:57:39
81
   |
82 83 84 85 86
LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
   |                           --  -- lifetime `'b` defined here
   |                           |
   |                           lifetime `'a` defined here
...
87
LL |     with_signature(cell, t, |cell, t| require(cell, t));
88
   |                                       ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
89

N
Niko Matsakis 已提交
90
note: External requirements
91
  --> $DIR/projection-one-region-trait-bound-closure.rs:70:29
N
Niko Matsakis 已提交
92
   |
V
Vadim Petrochenkov 已提交
93
LL |     with_signature(cell, t, |cell, t| require(cell, t));
N
Niko Matsakis 已提交
94 95 96 97 98 99 100 101 102
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: DefId(0/1:27 ~ projection_one_region_trait_bound_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
               '_#1r,
               '_#2r,
               T,
               i32,
               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
           ]
W
Wesley Wiser 已提交
103
   = note: number of external vids: 4
104
   = note: where <T as Anything<ReClosureBound('_#2r)>>::AssocType: '_#3r
N
Niko Matsakis 已提交
105

N
Niko Matsakis 已提交
106
note: No external requirements
B
Basile Desloges 已提交
107
  --> $DIR/projection-one-region-trait-bound-closure.rs:62:1
N
Niko Matsakis 已提交
108
   |
V
Vadim Petrochenkov 已提交
109 110 111 112
LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
LL | | where
LL | |     T: Anything<'b>,
LL | |     T::AssocType: 'a,
N
Niko Matsakis 已提交
113
...  |
114
LL | |     with_signature(cell, t, |cell, t| require(cell, t));
V
Vadim Petrochenkov 已提交
115
LL | | }
N
Niko Matsakis 已提交
116 117 118 119 120 121 122 123
   | |_^
   |
   = note: defining type: DefId(0/0:10 ~ projection_one_region_trait_bound_closure[317d]::projection_outlives[0]) with substs [
               '_#1r,
               '_#2r,
               T
           ]

N
Niko Matsakis 已提交
124
note: External requirements
125
  --> $DIR/projection-one-region-trait-bound-closure.rs:79:29
N
Niko Matsakis 已提交
126
   |
V
Vadim Petrochenkov 已提交
127
LL |     with_signature(cell, t, |cell, t| require(cell, t));
N
Niko Matsakis 已提交
128 129 130 131 132 133 134 135 136
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: DefId(0/1:31 ~ projection_one_region_trait_bound_closure[317d]::elements_outlive[0]::{{closure}}[0]) with closure substs [
               '_#1r,
               '_#2r,
               T,
               i32,
               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
           ]
W
Wesley Wiser 已提交
137
   = note: number of external vids: 4
N
Niko Matsakis 已提交
138 139
   = note: where '_#2r: '_#3r

N
Niko Matsakis 已提交
140
note: No external requirements
141
  --> $DIR/projection-one-region-trait-bound-closure.rs:74:1
N
Niko Matsakis 已提交
142
   |
V
Vadim Petrochenkov 已提交
143 144 145 146
LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
LL | | where
LL | |     T: Anything<'b>,
LL | |     'b: 'a,
V
Vadim Petrochenkov 已提交
147
LL | | {
V
Vadim Petrochenkov 已提交
148 149
LL | |     with_signature(cell, t, |cell, t| require(cell, t));
LL | | }
N
Niko Matsakis 已提交
150 151 152 153 154 155 156 157
   | |_^
   |
   = note: defining type: DefId(0/0:11 ~ projection_one_region_trait_bound_closure[317d]::elements_outlive[0]) with substs [
               '_#1r,
               '_#2r,
               T
           ]

N
Niko Matsakis 已提交
158
note: External requirements
159
  --> $DIR/projection-one-region-trait-bound-closure.rs:91:29
V
Vadim Petrochenkov 已提交
160 161 162 163 164 165 166 167 168 169
   |
LL |     with_signature(cell, t, |cell, t| require(cell, t));
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: DefId(0/1:34 ~ projection_one_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))
           ]
W
Wesley Wiser 已提交
170
   = note: number of external vids: 3
V
Vadim Petrochenkov 已提交
171
   = note: where '_#1r: '_#2r
N
Niko Matsakis 已提交
172

N
Niko Matsakis 已提交
173
note: No external requirements
174
  --> $DIR/projection-one-region-trait-bound-closure.rs:83:1
V
Vadim Petrochenkov 已提交
175 176 177 178 179 180 181 182 183 184 185 186 187 188
   |
LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
LL | | where
LL | |     T: Anything<'a>,
LL | | {
...  |
LL | |     with_signature(cell, t, |cell, t| require(cell, t));
LL | | }
   | |_^
   |
   = note: defining type: DefId(0/0:12 ~ projection_one_region_trait_bound_closure[317d]::one_region[0]) with substs [
               '_#1r,
               T
           ]
N
Niko Matsakis 已提交
189

190
error: aborting due to 2 previous errors
N
Niko Matsakis 已提交
191