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.

9 lines
166 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
pub fn bitshift_data(data: [u8; 1]) -> u8 {
data[0] << 8
}
fn main() {}