diff options
author | Ross Smyth <18294397+RossSmyth@users.noreply.github.com> | 2024-04-27 20:35:32 -0400 |
---|---|---|
committer | Ross Smyth <18294397+RossSmyth@users.noreply.github.com> | 2024-05-02 19:42:31 -0400 |
commit | 6967d1c0fcea4ade223bf3ae443a87d504005cbf (patch) | |
tree | 321a882cee7f5b56b14c734c26d1487fd29f6f46 /tests/ui/range | |
parent | 79734f1db8dbe322192dea32c0f6b80ab14c4c1d (diff) |
Stabilize exclusive_range
Diffstat (limited to 'tests/ui/range')
-rw-r--r-- | tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs | 1 | ||||
-rw-r--r-- | tests/ui/range/range-pattern-out-of-bounds-issue-68972.stderr | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs b/tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs index 206f05d0d3c..50203d3cf4f 100644 --- a/tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs +++ b/tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs @@ -1,4 +1,3 @@ -#![feature(exclusive_range_pattern)] #![allow(unreachable_patterns)] fn main() { match 0u8 { diff --git a/tests/ui/range/range-pattern-out-of-bounds-issue-68972.stderr b/tests/ui/range/range-pattern-out-of-bounds-issue-68972.stderr index 21f1fdba886..38ce1a8a240 100644 --- a/tests/ui/range/range-pattern-out-of-bounds-issue-68972.stderr +++ b/tests/ui/range/range-pattern-out-of-bounds-issue-68972.stderr @@ -1,11 +1,11 @@ error: literal out of range for `u8` - --> $DIR/range-pattern-out-of-bounds-issue-68972.rs:5:14 + --> $DIR/range-pattern-out-of-bounds-issue-68972.rs:4:14 | LL | 251..257 => {} | ^^^ this value does not fit into the type `u8` whose range is `0..=255` error: literal out of range for `u8` - --> $DIR/range-pattern-out-of-bounds-issue-68972.rs:7:15 + --> $DIR/range-pattern-out-of-bounds-issue-68972.rs:6:15 | LL | 251..=256 => {} | ^^^ this value does not fit into the type `u8` whose range is `0..=255` |