mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-04 09:40:02 +00:00
11 lines
197 B
Rust
11 lines
197 B
Rust
// 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() {}
|