]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_in_pattern/reject_non_partial_eq.stderr
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / test / ui / consts / const_in_pattern / reject_non_partial_eq.stderr
1 error: to use a constant of type `NoPartialEq` in a pattern, `NoPartialEq` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/reject_non_partial_eq.rs:28:9
3    |
4 LL |         NO_PARTIAL_EQ_NONE => println!("NO_PARTIAL_EQ_NONE"),
5    |         ^^^^^^^^^^^^^^^^^^
6
7 error: aborting due to previous error
8