diff options
Diffstat (limited to 'src/test/ui/consts/issue-91560.fixed')
-rw-r--r-- | src/test/ui/consts/issue-91560.fixed | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/consts/issue-91560.fixed b/src/test/ui/consts/issue-91560.fixed deleted file mode 100644 index 41b9d9573..000000000 --- a/src/test/ui/consts/issue-91560.fixed +++ /dev/null @@ -1,21 +0,0 @@ -// Regression test for issue #91560. - -// run-rustfix - -#![allow(unused,non_upper_case_globals)] - -fn foo() { - const length: usize = 2; - //~^ HELP: consider using `const` - let arr = [0; length]; - //~^ ERROR: attempt to use a non-constant value in a constant [E0435] -} - -fn bar() { - const length: usize = 2; - //~^ HELP: consider using `const` - let arr = [0; length]; - //~^ ERROR: attempt to use a non-constant value in a constant [E0435] -} - -fn main() {} |