rust/tests/ui/consts/const-eval/issue-100878.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
198 B
Rust
Raw Normal View History

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