diff options
Diffstat (limited to 'src/test/ui/consts/const-slice-oob.rs')
-rw-r--r-- | src/test/ui/consts/const-slice-oob.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/consts/const-slice-oob.rs b/src/test/ui/consts/const-slice-oob.rs deleted file mode 100644 index 429b97821..000000000 --- a/src/test/ui/consts/const-slice-oob.rs +++ /dev/null @@ -1,8 +0,0 @@ -const FOO: &'static[u32] = &[1, 2, 3]; -const BAR: u32 = FOO[5]; -//~^ index out of bounds: the length is 3 but the index is 5 -//~| ERROR evaluation of constant value failed - -fn main() { - let _ = BAR; -} |