You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: pointers do not have a lifetime; when calling `get` the `SyncUnsafeCell<u8>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
191
191
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
192
192
193
-
error: aborting due to 17 previous errors
193
+
error: a dangling pointer will be produced because the temporary `MaybeUninit<MaybeUninit<&u8>>` will be dropped
| ------------------------------------------ ^^^^^^ this pointer will immediately be invalid
198
+
| |
199
+
| this `MaybeUninit<MaybeUninit<&u8>>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
200
+
|
201
+
= note: pointers do not have a lifetime; when calling `as_ptr` the `MaybeUninit<MaybeUninit<&u8>>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
202
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
203
+
204
+
error: a dangling pointer will be produced because the temporary `Box<MaybeUninit<&u8>>` will be dropped
205
+
--> $DIR/types.rs:57:40
206
+
|
207
+
LL | declval::<Box<MaybeUninit<&u8>>>().as_ptr();
208
+
| ---------------------------------- ^^^^^^ this pointer will immediately be invalid
209
+
| |
210
+
| this `Box<MaybeUninit<&u8>>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
211
+
|
212
+
= note: pointers do not have a lifetime; when calling `as_ptr` the `Box<MaybeUninit<&u8>>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
213
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
214
+
215
+
error: a dangling pointer will be produced because the temporary `MaybeUninit<&u8>` will be dropped
216
+
--> $DIR/types.rs:59:35
217
+
|
218
+
LL | declval::<MaybeUninit<&u8>>().as_ptr();
219
+
| ----------------------------- ^^^^^^ this pointer will immediately be invalid
220
+
| |
221
+
| this `MaybeUninit<&u8>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
222
+
|
223
+
= note: pointers do not have a lifetime; when calling `as_ptr` the `MaybeUninit<&u8>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
224
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
225
+
226
+
error: a dangling pointer will be produced because the temporary `[&u8; 10]` will be dropped
227
+
--> $DIR/types.rs:61:28
228
+
|
229
+
LL | declval::<[&u8; 10]>().as_ptr();
230
+
| ---------------------- ^^^^^^ this pointer will immediately be invalid
231
+
| |
232
+
| this `[&u8; 10]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
233
+
|
234
+
= note: pointers do not have a lifetime; when calling `as_ptr` the `[&u8; 10]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
235
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
0 commit comments