summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-68951.rs
blob: 1c1e92c5bbcbbe7fc18858c883aee105ce06e712 (plain)
1
2
3
4
5
6
7
8
9
// check-pass

fn main() {
    let array = [0x42u8; 10];
    for b in &array {
        let lo = b & 0xf;
        let hi = (b >> 4) & 0xf;
    }
}