2022-09-23 05:09:16 -05:00
|
|
|
// This checks that the const-eval ICE in issue #100878 does not recur.
|
|
|
|
//
|
|
|
|
// build-pass
|
2023-04-09 04:42:57 -05:00
|
|
|
|
|
|
|
#[allow(arithmetic_overflow)]
|
2022-09-23 05:09:16 -05:00
|
|
|
pub fn bitshift_data(data: [u8; 1]) -> u8 {
|
|
|
|
data[0] << 8
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|