blob: bd56f854c8b17b9eee005612ae3146717d8d880b (
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() {}
|