Files
rust/tests/ui/inference/bitwise-integer-inference-68951.rs

11 lines
197 B
Rust
Raw Normal View History

2025-08-20 14:02:57 -04:00
// https://github.com/rust-lang/rust/issues/68951
//@ check-pass
2020-10-01 14:10:23 +09:00
fn main() {
let array = [0x42u8; 10];
for b in &array {
let lo = b & 0xf;
let hi = (b >> 4) & 0xf;
}
}