diff options
Diffstat (limited to 'tests/ui/consts/const-eval/index_out_of_bounds.rs')
-rw-r--r-- | tests/ui/consts/const-eval/index_out_of_bounds.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/index_out_of_bounds.rs b/tests/ui/consts/const-eval/index_out_of_bounds.rs new file mode 100644 index 000000000..80e0d28fe --- /dev/null +++ b/tests/ui/consts/const-eval/index_out_of_bounds.rs @@ -0,0 +1,4 @@ +static FOO: i32 = [][0]; +//~^ ERROR E0080 + +fn main() {} |