Files
rust/tests/ui/inference/bitwise-integer-inference-68951.rs
2025-10-11 21:59:51 -04:00

11 lines
197 B
Rust

// https://github.com/rust-lang/rust/issues/68951
//@ check-pass
fn main() {
let array = [0x42u8; 10];
for b in &array {
let lo = b & 0xf;
let hi = (b >> 4) & 0xf;
}
}