]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / integer-ranges / exhaustiveness.stderr
CommitLineData
fc512014 1error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
5e7ed085 2 --> $DIR/exhaustiveness.rs:47:8
fc512014
XL
3 |
4LL | m!(0u8, 0..255);
5 | ^^^ pattern `u8::MAX` not covered
6 |
fc512014 7 = note: the matched value is of type `u8`
5e7ed085
FG
8help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
9 |
923072b8
FG
10LL | match $s { $($t)+ => {}, u8::MAX => todo!() }
11 | ++++++++++++++++++++
fc512014
XL
12
13error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
5e7ed085 14 --> $DIR/exhaustiveness.rs:48:8
fc512014
XL
15 |
16LL | m!(0u8, 0..=254);
17 | ^^^ pattern `u8::MAX` not covered
18 |
fc512014 19 = note: the matched value is of type `u8`
5e7ed085
FG
20help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
21 |
923072b8
FG
22LL | match $s { $($t)+ => {}, u8::MAX => todo!() }
23 | ++++++++++++++++++++
fc512014
XL
24
25error[E0004]: non-exhaustive patterns: `0_u8` not covered
5e7ed085 26 --> $DIR/exhaustiveness.rs:49:8
fc512014
XL
27 |
28LL | m!(0u8, 1..=255);
29 | ^^^ pattern `0_u8` not covered
30 |
fc512014 31 = note: the matched value is of type `u8`
5e7ed085
FG
32help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
33 |
923072b8
FG
34LL | match $s { $($t)+ => {}, 0_u8 => todo!() }
35 | +++++++++++++++++
fc512014
XL
36
37error[E0004]: non-exhaustive patterns: `42_u8` not covered
5e7ed085 38 --> $DIR/exhaustiveness.rs:50:8
fc512014
XL
39 |
40LL | m!(0u8, 0..42 | 43..=255);
41 | ^^^ pattern `42_u8` not covered
42 |
fc512014 43 = note: the matched value is of type `u8`
5e7ed085
FG
44help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
45 |
923072b8
FG
46LL | match $s { $($t)+ => {}, 42_u8 => todo!() }
47 | ++++++++++++++++++
fc512014
XL
48
49error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
5e7ed085 50 --> $DIR/exhaustiveness.rs:51:8
fc512014
XL
51 |
52LL | m!(0i8, -128..127);
53 | ^^^ pattern `i8::MAX` not covered
54 |
fc512014 55 = note: the matched value is of type `i8`
5e7ed085
FG
56help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
57 |
923072b8
FG
58LL | match $s { $($t)+ => {}, i8::MAX => todo!() }
59 | ++++++++++++++++++++
fc512014
XL
60
61error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
5e7ed085 62 --> $DIR/exhaustiveness.rs:52:8
fc512014
XL
63 |
64LL | m!(0i8, -128..=126);
65 | ^^^ pattern `i8::MAX` not covered
66 |
fc512014 67 = note: the matched value is of type `i8`
5e7ed085
FG
68help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
69 |
923072b8
FG
70LL | match $s { $($t)+ => {}, i8::MAX => todo!() }
71 | ++++++++++++++++++++
fc512014
XL
72
73error[E0004]: non-exhaustive patterns: `i8::MIN` not covered
5e7ed085 74 --> $DIR/exhaustiveness.rs:53:8
fc512014
XL
75 |
76LL | m!(0i8, -127..=127);
77 | ^^^ pattern `i8::MIN` not covered
78 |
fc512014 79 = note: the matched value is of type `i8`
5e7ed085
FG
80help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
81 |
923072b8
FG
82LL | match $s { $($t)+ => {}, i8::MIN => todo!() }
83 | ++++++++++++++++++++
fc512014
XL
84
85error[E0004]: non-exhaustive patterns: `0_i8` not covered
5e7ed085 86 --> $DIR/exhaustiveness.rs:54:11
fc512014
XL
87 |
88LL | match 0i8 {
89 | ^^^ pattern `0_i8` not covered
90 |
fc512014 91 = note: the matched value is of type `i8`
5e7ed085
FG
92help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
93 |
94LL ~ 1 ..= i8::MAX => {}
95LL + 0_i8 => todo!()
96 |
fc512014
XL
97
98error[E0004]: non-exhaustive patterns: `u128::MAX` not covered
5e7ed085 99 --> $DIR/exhaustiveness.rs:59:8
fc512014
XL
100 |
101LL | m!(0u128, 0..=ALMOST_MAX);
102 | ^^^^^ pattern `u128::MAX` not covered
103 |
fc512014 104 = note: the matched value is of type `u128`
5e7ed085
FG
105help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
106 |
923072b8
FG
107LL | match $s { $($t)+ => {}, u128::MAX => todo!() }
108 | ++++++++++++++++++++++
fc512014
XL
109
110error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered
5e7ed085 111 --> $DIR/exhaustiveness.rs:60:8
fc512014
XL
112 |
113LL | m!(0u128, 0..=4);
114 | ^^^^^ pattern `5_u128..=u128::MAX` not covered
115 |
fc512014 116 = note: the matched value is of type `u128`
5e7ed085
FG
117help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
118 |
923072b8
FG
119LL | match $s { $($t)+ => {}, 5_u128..=u128::MAX => todo!() }
120 | +++++++++++++++++++++++++++++++
fc512014
XL
121
122error[E0004]: non-exhaustive patterns: `0_u128` not covered
5e7ed085 123 --> $DIR/exhaustiveness.rs:61:8
fc512014
XL
124 |
125LL | m!(0u128, 1..=u128::MAX);
126 | ^^^^^ pattern `0_u128` not covered
127 |
fc512014 128 = note: the matched value is of type `u128`
5e7ed085
FG
129help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
130 |
923072b8
FG
131LL | match $s { $($t)+ => {}, 0_u128 => todo!() }
132 | +++++++++++++++++++
fc512014
XL
133
134error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered
5e7ed085 135 --> $DIR/exhaustiveness.rs:69:11
fc512014
XL
136 |
137LL | match (0u8, true) {
138 | ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered
139 |
fc512014 140 = note: the matched value is of type `(u8, bool)`
5e7ed085
FG
141help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
142 |
143LL ~ (0 ..= 255, true) => {}
144LL + (126_u8..=127_u8, false) => todo!()
145 |
fc512014
XL
146
147error: aborting due to 12 previous errors
148
149For more information about this error, try `rustc --explain E0004`.