File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- pub const fn test_match_range ( len : usize ) -> usize {
1
+ pub const fn test_match_range ( len : u64 ) -> u64 {
2
2
match len {
3
- 10000000000000000000 ..=99999999999999999999 => 0 , //~ ERROR literal out of range for `usize `
3
+ 10000000000000000000 ..=99999999999999999999 => 0 , //~ ERROR literal out of range for `u64 `
4
4
_ => unreachable ! ( ) ,
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
- error: literal out of range for `usize `
1
+ error: literal out of range for `u64 `
2
2
--> $DIR/issue-94239.rs:3:32
3
3
|
4
4
LL | 10000000000000000000..=99999999999999999999 => 0,
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= 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`
9
9
10
10
error: aborting due to previous error
11
11
You can’t perform that action at this time.
0 commit comments