]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/match/match-range-fail-dominate.stderr
Never stop due to errors before borrow checking
[rust.git] / src / test / ui / match / match-range-fail-dominate.stderr
index d35394aa38ba076fa267756b8bb3ea58790b5add..0f5ab7fff384050684ab068f5d14fe3c0e9d7119 100644 (file)
@@ -62,5 +62,14 @@ error: unreachable pattern
 LL |       0.02f64 => {}
    |       ^^^^^^^
 
+warning: floating-point types cannot be used in patterns
+  --> $DIR/match-range-fail-dominate.rs:35:7
+   |
+LL |       0.01f64 ... 6.5f64 => {}
+   |       ^^^^^^^
+   |
+   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
+
 error: aborting due to 5 previous errors