Skip to content

Commit

Permalink
Try format again
Browse files Browse the repository at this point in the history
  • Loading branch information
artemagvanian committed Jul 8, 2024
1 parent 9d6d9e7 commit 4092e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/expected/uninit/delayed-ub/delayed-ub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ fn invalid_value() {
let mut value: u128 = 0;
let ptr = &mut value as *mut _ as *mut (u8, u32, u64);
*ptr = (4, 4, 4); // This assignment itself does not cause UB...
let c: u128 = value; // ...but this reads a padding value! ⚠️
let c: u128 = value; // ...but this reads a padding value!
}
}

0 comments on commit 4092e82

Please sign in to comment.