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
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
= note: pointers do not have a lifetime; when calling `as_ptr` the `Vec<AsPtrFake>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
169
169
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
170
170
171
-
error: aborting due to 15 previous errors
171
+
error: a dangling pointer will be produced because the temporary `UnsafeCell<u8>` will be dropped
172
+
--> $DIR/types.rs:51:33
173
+
|
174
+
LL | declval::<UnsafeCell<u8>>().get();
175
+
| --------------------------- ^^^ this pointer will immediately be invalid
176
+
| |
177
+
| this `UnsafeCell<u8>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
178
+
|
179
+
= note: pointers do not have a lifetime; when calling `get` the `UnsafeCell<u8>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
180
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
181
+
182
+
error: a dangling pointer will be produced because the temporary `SyncUnsafeCell<u8>` will be dropped
183
+
--> $DIR/types.rs:53:37
184
+
|
185
+
LL | declval::<SyncUnsafeCell<u8>>().get();
186
+
| ------------------------------- ^^^ this pointer will immediately be invalid
187
+
| |
188
+
| this `SyncUnsafeCell<u8>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
189
+
|
190
+
= 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
+
= help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
0 commit comments