Skip to content

Commit b0c4db3

Browse files
committed
Fix ci test issue-94239.rs
1 parent 5b58c6f commit b0c4db3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/ui/issues/issue-94239.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pub const fn test_match_range(len: usize) -> usize {
1+
pub const fn test_match_range(len: u64) -> u64 {
22
match len {
3-
10000000000000000000..=99999999999999999999 => 0, //~ ERROR literal out of range for `usize`
3+
10000000000000000000..=99999999999999999999 => 0, //~ ERROR literal out of range for `u64`
44
_ => unreachable!(),
55
}
66
}

src/test/ui/issues/issue-94239.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error: literal out of range for `usize`
1+
error: literal out of range for `u64`
22
--> $DIR/issue-94239.rs:3:32
33
|
44
LL | 10000000000000000000..=99999999999999999999 => 0,
55
| ^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `#[deny(overflowing_literals)]` on by default
8-
= note: the literal `99999999999999999999` does not fit into the type `usize` whose range is `0..=18446744073709551615`
8+
= note: the literal `99999999999999999999` does not fit into the type `u64` whose range is `0..=18446744073709551615`
99

1010
error: aborting due to previous error
1111

0 commit comments

Comments
 (0)