]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/usefulness/floats.stderr
When finding a match expr with a single arm that requires more, suggest it
[rust.git] / src / test / ui / pattern / usefulness / floats.stderr
index a2ffdf8220503c16250e9efa464aa02cbb35a986..bbeac5959f0592b1ceef297c7c6cdfb53aace75e 100644 (file)
@@ -5,7 +5,11 @@ LL |     match 0.0 {
    |           ^^^ pattern `_` not covered
    |
    = note: the matched value is of type `f64`
-   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
+help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
+   |
+LL ~       0.0..=1.0 => {}
+LL +       _ => todo!()
+   |
 
 error: unreachable pattern
   --> $DIR/floats.rs:16:7