]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/floats.stderr
Auto merge of #98526 - jyn514:download-llvm-outside-checkout, r=Mark-Simulacrum
[rust.git] / src / test / ui / pattern / usefulness / floats.stderr
1 error[E0004]: non-exhaustive patterns: `_` not covered
2   --> $DIR/floats.rs:10:11
3    |
4 LL |     match 0.0 {
5    |           ^^^ pattern `_` not covered
6    |
7    = note: the matched value is of type `f64`
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 ~       0.0..=1.0 => {}
11 LL +       _ => todo!()
12    |
13
14 error: unreachable pattern
15   --> $DIR/floats.rs:16:7
16    |
17 LL |       0.02f64 => {}
18    |       ^^^^^^^
19    |
20 note: the lint level is defined here
21   --> $DIR/floats.rs:2:9
22    |
23 LL | #![deny(unreachable_patterns)]
24    |         ^^^^^^^^^^^^^^^^^^^^
25
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0004`.