]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/guards.stderr
Auto merge of #98526 - jyn514:download-llvm-outside-checkout, r=Mark-Simulacrum
[rust.git] / src / test / ui / pattern / usefulness / guards.stderr
1 error[E0004]: non-exhaustive patterns: `128_u8..=u8::MAX` not covered
2   --> $DIR/guards.rs:12:11
3    |
4 LL |     match 0u8 {
5    |           ^^^ pattern `128_u8..=u8::MAX` not covered
6    |
7    = note: the matched value is of type `u8`
8 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
9    |
10 LL ~         128 ..= 255 if true => {}
11 LL +         128_u8..=u8::MAX => todo!()
12    |
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0004`.