fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
739 B26 linesraw
1error: to use a constant of type `Opaque` in a pattern, `Opaque` must be annotated with `#[derive(PartialEq, Eq)]`
2  --> $DIR/issue-78057.rs:12:9
3   |
4LL |         FOO => {},
5   |         ^^^
6   |
7   = note: the traits must be derived, manual `impl`s are not sufficient
8   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
9
10error: unreachable pattern
11  --> $DIR/issue-78057.rs:14:9
12   |
13LL |         FOO => {},
14   |         --- matches any value
15LL |
16LL |         _ => {}
17   |         ^ unreachable pattern
18   |
19note: the lint level is defined here
20  --> $DIR/issue-78057.rs:1:9
21   |
22LL | #![deny(unreachable_patterns)]
23   |         ^^^^^^^^^^^^^^^^^^^^
24
25error: aborting due to 2 previous errors
26