diff options
Diffstat (limited to 'tests/ui/consts/issue-17756.rs')
-rw-r--r-- | tests/ui/consts/issue-17756.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-17756.rs b/tests/ui/consts/issue-17756.rs new file mode 100644 index 000000000..1835b177f --- /dev/null +++ b/tests/ui/consts/issue-17756.rs @@ -0,0 +1,8 @@ +// run-pass +#![allow(unused_variables)] +#![allow(non_upper_case_globals)] + +const count : usize = 2 as usize; +fn main() { + let larger : [usize; count*2]; +} |