Skip to content

Commit 8631e1c

Browse files
committed
Add a regression test for issue-68951
1 parent c1e17f5 commit 8631e1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/ui/issues/issue-68951.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
3+
fn main() {
4+
let array = [0x42u8; 10];
5+
for b in &array {
6+
let lo = b & 0xf;
7+
let hi = (b >> 4) & 0xf;
8+
}
9+
}

0 commit comments

Comments
 (0)