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/dangling_raw_ptr.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ error[E0080]: it is undefined behavior to use this value
24
24
--> $DIR/dangling_raw_ptr.rs:20:1
25
25
|
26
26
LL | const BAZ: Union = {
27
-
| ^^^^^^^^^^^^^^^^ constructing invalid value: encountered a dangling reference (use-after-free)
27
+
| ^^^^^^^^^^^^^^^^ constructing invalid value at .<offset(0)>.<deref>: encountered a dangling reference (use-after-free)
28
28
|
29
29
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
30
30
= note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
0 commit comments