mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Add a regression test for issue-68951
This commit is contained in:
parent
c1e17f56ea
commit
8631e1c575
9
src/test/ui/issues/issue-68951.rs
Normal file
9
src/test/ui/issues/issue-68951.rs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user