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>
0 commit comments