We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157cfbd commit b006128Copy full SHA for b006128
main
810 KB
tests/ui/union/union-unsafe.rs
@@ -76,7 +76,7 @@ fn main() {
76
77
let u4 = U5 { a: 2 };
78
let vec = vec![1, 2, 3];
79
- // This is unsafe because we read u4.a (potentially uninitialized memory)
+ // This is unsafe because we read u4.a (potentially uninitialized memory)
80
// to use as an array index
81
let _a = &raw const vec[u4.a]; //~ ERROR access to union field is unsafe
82
0 commit comments