]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1445/match-forbidden-without-eq.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / rfc1445 / match-forbidden-without-eq.stderr
1 error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/match-forbidden-without-eq.rs:23:9
3    |
4 LL |         FOO => { }
5    |         ^^^
6
7 warning: floating-point types cannot be used in patterns
8   --> $DIR/match-forbidden-without-eq.rs:30:9
9    |
10 LL |         f32::INFINITY => { }
11    |         ^^^^^^^^^^^^^
12    |
13    = note: #[warn(illegal_floating_point_literal_pattern)] on by default
14    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
15    = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
16
17 error: aborting due to previous error
18