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
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/heap/make-global-dangling.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error[E0080]: pointer not dereferenceable: pointer must point to some allocation, but got null pointer
2
-
--> $DIR/make-global-dangling.rs:7:8
2
+
--> $DIR/make-global-dangling.rs:9:8
3
3
|
4
4
LL | &*(intrinsics::const_make_global(std::ptr::null_mut()) as *const u32)
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `Y` failed here
6
6
7
7
error[E0080]: pointer not dereferenceable: pointer must point to some allocation, but got 0x1[noalloc] which is a dangling pointer (it has no provenance)
8
-
--> $DIR/make-global-dangling.rs:12:8
8
+
--> $DIR/make-global-dangling.rs:14:8
9
9
|
10
10
LL | &*(intrinsics::const_make_global(std::ptr::dangling_mut()) as *const u32)
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `Z` failed here
0 commit comments