fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: `_` not covered 2 --> $DIR/floats.rs:11:11 3 | 4LL | match 0.0 { 5 | ^^^ pattern `_` not covered 6 | 7 = note: the matched value is of type `f64` 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 | 10LL ~ 0.0..=1.0 => {}, 11LL + _ => todo!() 12 | 13 14error: unreachable pattern 15 --> $DIR/floats.rs:19:9 16 | 17LL | 0.01f64 => {} 18 | ^^^^^^^ 19 | 20note: the lint level is defined here 21 --> $DIR/floats.rs:3:9 22 | 23LL | #![deny(unreachable_patterns)] 24 | ^^^^^^^^^^^^^^^^^^^^ 25 26error: unreachable pattern 27 --> $DIR/floats.rs:20:9 28 | 29LL | 0.02f64 => {} 30 | ^^^^^^^ 31 32error: unreachable pattern 33 --> $DIR/floats.rs:21:9 34 | 35LL | 6.5f64 => {} 36 | ^^^^^^ 37 38error: unreachable pattern 39 --> $DIR/floats.rs:23:9 40 | 41LL | 1.0f64..=4.0f64 => {} 42 | ^^^^^^^^^^^^^^^ 43 44error: unreachable pattern 45 --> $DIR/floats.rs:35:9 46 | 47LL | 0.01f32 => {} 48 | ^^^^^^^ 49 50error: unreachable pattern 51 --> $DIR/floats.rs:36:9 52 | 53LL | 0.02f32 => {} 54 | ^^^^^^^ 55 56error: unreachable pattern 57 --> $DIR/floats.rs:37:9 58 | 59LL | 6.5f32 => {} 60 | ^^^^^^ 61 62error: aborting due to 8 previous errors 63 64For more information about this error, try `rustc --explain E0004`.