1
1
error: literal out of range for `u8`
2
- --> $DIR/validate-range-endpoints.rs:9 :12
2
+ --> $DIR/validate-range-endpoints.rs:8 :12
3
3
|
4
4
LL | 1..257 => {}
5
5
| ^^^ this value does not fit into the type `u8` whose range is `0..=255`
6
6
7
7
error: literal out of range for `u8`
8
- --> $DIR/validate-range-endpoints.rs:11 :13
8
+ --> $DIR/validate-range-endpoints.rs:10 :13
9
9
|
10
10
LL | 1..=256 => {}
11
11
| ^^^ this value does not fit into the type `u8` whose range is `0..=255`
12
12
13
13
error[E0030]: lower range bound must be less than or equal to upper
14
- --> $DIR/validate-range-endpoints.rs:20 :9
14
+ --> $DIR/validate-range-endpoints.rs:19 :9
15
15
|
16
16
LL | 1..=TOO_BIG => {}
17
17
| ^^^^^^^^^^^ lower bound larger than upper bound
18
18
19
19
error[E0030]: lower range bound must be less than or equal to upper
20
- --> $DIR/validate-range-endpoints.rs:22 :9
20
+ --> $DIR/validate-range-endpoints.rs:21 :9
21
21
|
22
22
LL | 1..=const { 256 } => {}
23
23
| ^^^^^^^^^^^^^^^^^ lower bound larger than upper bound
24
24
25
25
error: literal out of range for `u64`
26
- --> $DIR/validate-range-endpoints.rs:28 :32
26
+ --> $DIR/validate-range-endpoints.rs:27 :32
27
27
|
28
28
LL | 10000000000000000000..=99999999999999999999 => {}
29
29
| ^^^^^^^^^^^^^^^^^^^^ this value does not fit into the type `u64` whose range is `0..=18446744073709551615`
30
30
31
31
error: literal out of range for `i8`
32
- --> $DIR/validate-range-endpoints.rs:34 :12
32
+ --> $DIR/validate-range-endpoints.rs:33 :12
33
33
|
34
34
LL | 0..129 => {}
35
35
| ^^^ this value does not fit into the type `i8` whose range is `-128..=127`
36
36
37
37
error: literal out of range for `i8`
38
- --> $DIR/validate-range-endpoints.rs:36 :13
38
+ --> $DIR/validate-range-endpoints.rs:35 :13
39
39
|
40
40
LL | 0..=128 => {}
41
41
| ^^^ this value does not fit into the type `i8` whose range is `-128..=127`
42
42
43
43
error: literal out of range for `i8`
44
- --> $DIR/validate-range-endpoints.rs:38 :9
44
+ --> $DIR/validate-range-endpoints.rs:37 :9
45
45
|
46
46
LL | -129..0 => {}
47
47
| ^^^^ this value does not fit into the type `i8` whose range is `-128..=127`
48
48
49
49
error: literal out of range for `i8`
50
- --> $DIR/validate-range-endpoints.rs:40 :9
50
+ --> $DIR/validate-range-endpoints.rs:39 :9
51
51
|
52
52
LL | -10000..=-20 => {}
53
53
| ^^^^^^ this value does not fit into the type `i8` whose range is `-128..=127`
54
54
55
55
error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
56
- --> $DIR/validate-range-endpoints.rs:51 :11
56
+ --> $DIR/validate-range-endpoints.rs:50 :11
57
57
|
58
58
LL | match 0i8 {
59
59
| ^^^ patterns `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
@@ -66,7 +66,7 @@ LL + i8::MIN..=-17_i8 | 1_i8..=i8::MAX => todo!()
66
66
|
67
67
68
68
error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` not covered
69
- --> $DIR/validate-range-endpoints.rs:55 :11
69
+ --> $DIR/validate-range-endpoints.rs:54 :11
70
70
|
71
71
LL | match 0i8 {
72
72
| ^^^ pattern `i8::MIN..=-17_i8` not covered
0 commit comments