fork/rust

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

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

master
790 B15 linesraw
1error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
2  --> $DIR/ice-6254.rs:13:9
3   |
4LL |         FOO_REF_REF => {},
5   |         ^^^^^^^^^^^
6   |
7   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8   = note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411>
9   = note: the traits must be derived, manual `impl`s are not sufficient
10   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
11   = note: `-D indirect-structural-match` implied by `-D warnings`
12   = help: to override `-D warnings` add `#[allow(indirect_structural_match)]`
13
14error: aborting due to previous error
15