Skip to content

Commit b006128

Browse files
committed
temp
1 parent 157cfbd commit b006128

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

main

810 KB
Binary file not shown.

tests/ui/union/union-unsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn main() {
7676

7777
let u4 = U5 { a: 2 };
7878
let vec = vec![1, 2, 3];
79-
// This is unsafe because we read u4.a (potentially uninitialized memory)
79+
// This is unsafe because we read u4.a (potentially uninitialized memory)
8080
// to use as an array index
8181
let _a = &raw const vec[u4.a]; //~ ERROR access to union field is unsafe
8282

0 commit comments

Comments
 (0)