Skip to content

Commit

Permalink
add asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 5, 2022
1 parent cedc428 commit d5721ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/aligned_enum_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ fn main() {
let aligned = Aligned::Zero;
let fo = aligned as u8;
println!("foo {}", fo);
assert_eq!(fo, 0);
println!("{}", tou8(Aligned::Zero));
assert_eq!(tou8(Aligned::Zero), 0);
}

#[inline(never)]
Expand Down

0 comments on commit d5721ce

Please sign in to comment.