Skip to content

Commit

Permalink
Add regression test for issue rust-lang#100878
Browse files Browse the repository at this point in the history
  • Loading branch information
inquisitivecrystal committed Sep 23, 2022
1 parent 77e7e88 commit ad05b32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ui/consts/const-eval/issue-100878.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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() {}

0 comments on commit ad05b32

Please sign in to comment.