Skip to content

Commit ad05b32

Browse files
Add regression test for issue #100878
1 parent 77e7e88 commit ad05b32

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)