We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6311477 commit 2efb3c2Copy full SHA for 2efb3c2
gcc/testsuite/rust/compile/issue-3924.rs
@@ -0,0 +1,6 @@
1
+pub fn main() {
2
+ const S: usize = 23 as i64;
3
+ // { dg-error {mismatched types, expected .usize. but got .i64.} "" { target *-*-* } .-1 }
4
+ [0; S];
5
+ ()
6
+}
0 commit comments