summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/issue-100878.rs
blob: 353ce5050359c9627fa755cad25ace121dfd667d (plain)
1
2
3
4
5
6
7
8
// This checks that the const-eval ICE in issue #100878 does not recur.
//
// build-pass
pub fn bitshift_data(data: [u8; 1]) -> u8 {
    data[0] << 8
}

fn main() {}