diff options
Diffstat (limited to 'tests/ui/consts/slice-index-overflow-issue-130284.rs')
| -rw-r--r-- | tests/ui/consts/slice-index-overflow-issue-130284.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/consts/slice-index-overflow-issue-130284.rs b/tests/ui/consts/slice-index-overflow-issue-130284.rs index 6877ebe1476..f5235b0e1f1 100644 --- a/tests/ui/consts/slice-index-overflow-issue-130284.rs +++ b/tests/ui/consts/slice-index-overflow-issue-130284.rs @@ -5,8 +5,7 @@ const C: () = { unsafe { // This used to ICE, but it should just report UB. let _ice = (*fat)[usize::MAX - 1]; - //~^ERROR: constant value failed - //~| NOTE overflow + //~^ERROR: overflow } }; |
