about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/issue-100878.rs
blob: 5a0bc5fc28d0cd8e171592b1e39d7368914afa36 (plain)
1
2
3
4
5
6
7
8
9
10
// This checks that the const-eval ICE in issue #100878 does not recur.
//
//@ build-pass

#[allow(arithmetic_overflow)]
pub fn bitshift_data(data: [u8; 1]) -> u8 {
    data[0] << 8
}

fn main() {}