File: validate-range-endpoints.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (84 lines) | stat: -rw-r--r-- 3,147 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
error: literal out of range for `u8`
  --> $DIR/validate-range-endpoints.rs:7:12
   |
LL |         1..257 => {}
   |            ^^^ this value does not fit into the type `u8` whose range is `0..=255`

error: literal out of range for `u8`
  --> $DIR/validate-range-endpoints.rs:9:13
   |
LL |         1..=256 => {}
   |             ^^^ this value does not fit into the type `u8` whose range is `0..=255`

error[E0030]: lower range bound must be less than or equal to upper
  --> $DIR/validate-range-endpoints.rs:18:9
   |
LL |         1..=TOO_BIG => {}
   |         ^^^^^^^^^^^ lower bound larger than upper bound

error[E0030]: lower range bound must be less than or equal to upper
  --> $DIR/validate-range-endpoints.rs:20:9
   |
LL |         1..=const { 256 } => {}
   |         ^^^^^^^^^^^^^^^^^ lower bound larger than upper bound

error: literal out of range for `u64`
  --> $DIR/validate-range-endpoints.rs:26:32
   |
LL |         10000000000000000000..=99999999999999999999 => {}
   |                                ^^^^^^^^^^^^^^^^^^^^ this value does not fit into the type `u64` whose range is `0..=18446744073709551615`

error: literal out of range for `i8`
  --> $DIR/validate-range-endpoints.rs:32:12
   |
LL |         0..129 => {}
   |            ^^^ this value does not fit into the type `i8` whose range is `-128..=127`

error: literal out of range for `i8`
  --> $DIR/validate-range-endpoints.rs:34:13
   |
LL |         0..=128 => {}
   |             ^^^ this value does not fit into the type `i8` whose range is `-128..=127`

error: literal out of range for `i8`
  --> $DIR/validate-range-endpoints.rs:36:9
   |
LL |         -129..0 => {}
   |         ^^^^ this value does not fit into the type `i8` whose range is `-128..=127`

error: literal out of range for `i8`
  --> $DIR/validate-range-endpoints.rs:38:9
   |
LL |         -10000..=-20 => {}
   |         ^^^^^^ this value does not fit into the type `i8` whose range is `-128..=127`

error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
  --> $DIR/validate-range-endpoints.rs:49:11
   |
LL |     match 0i8 {
   |           ^^^ patterns `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
   |
   = note: the matched value is of type `i8`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
   |
LL ~         -10000..=0 => {},
LL +         i8::MIN..=-17_i8 | 1_i8..=i8::MAX => todo!()
   |

error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` not covered
  --> $DIR/validate-range-endpoints.rs:53:11
   |
LL |     match 0i8 {
   |           ^^^ pattern `i8::MIN..=-17_i8` not covered
   |
   = note: the matched value is of type `i8`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
   |
LL ~         -10000.. => {},
LL +         i8::MIN..=-17_i8 => todo!()
   |

error: aborting due to 11 previous errors

Some errors have detailed explanations: E0004, E0030.
For more information about an error, try `rustc --explain E0004`.