]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr
Update tests to remove old numeric constants
[rust.git] / src / test / ui / rfc-1445-restrict-constants-in-patterns / match-forbidden-without-eq.stderr
index 02fa23981894a07a307a9e87bd856b2768864883..9a5d57d411832e3b0386207d241685246db548f0 100644 (file)
@@ -1,11 +1,11 @@
 error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
-  --> $DIR/match-forbidden-without-eq.rs:13:9
+  --> $DIR/match-forbidden-without-eq.rs:11:9
    |
 LL |         FOO => { }
    |         ^^^
 
 warning: floating-point types cannot be used in patterns
-  --> $DIR/match-forbidden-without-eq.rs:20:9
+  --> $DIR/match-forbidden-without-eq.rs:18:9
    |
 LL |         f32::INFINITY => { }
    |         ^^^^^^^^^^^^^
@@ -15,7 +15,7 @@ LL |         f32::INFINITY => { }
    = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
 
 warning: floating-point types cannot be used in patterns
-  --> $DIR/match-forbidden-without-eq.rs:20:9
+  --> $DIR/match-forbidden-without-eq.rs:18:9
    |
 LL |         f32::INFINITY => { }
    |         ^^^^^^^^^^^^^