Skip to content

Commit fe6ffc2

Browse files
authored
Rollup merge of rust-lang#102181 - inquisitivecrystal:issue-100878-test, r=Mark-Simulacrum
Add regression test This adds a regression test for issue rust-lang#100878. Closes rust-lang#100878.
2 parents 1eff7a6 + ad05b32 commit fe6ffc2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This checks that the const-eval ICE in issue #100878 does not recur.
2+
//
3+
// build-pass
4+
pub fn bitshift_data(data: [u8; 1]) -> u8 {
5+
data[0] << 8
6+
}
7+
8+
fn main() {}

0 commit comments

Comments
 (0)