rust/tests/ui/consts/const-eval/issue-100878.rs
2023-01-11 09:32:08 +00:00

9 lines
166 B
Rust

// 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() {}