Add a regression test for issue-68951

This commit is contained in:
Yuki Okushi 2020-10-01 14:10:23 +09:00
parent c1e17f56ea
commit 8631e1c575

View File

@ -0,0 +1,9 @@
// check-pass
fn main() {
let array = [0x42u8; 10];
for b in &array {
let lo = b & 0xf;
let hi = (b >> 4) & 0xf;
}
}