We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e7e88 commit ad05b32Copy full SHA for ad05b32
src/test/ui/consts/const-eval/issue-100878.rs
@@ -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