]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_in_pattern/cross-crate-fail.stderr
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
[rust.git] / src / test / ui / consts / const_in_pattern / cross-crate-fail.stderr
1 error: to use a constant of type `CustomEq` in a pattern, `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/cross-crate-fail.rs:13:9
3    |
4 LL |         consts::SOME => panic!(),
5    |         ^^^^^^^^^^^^
6
7 error: to use a constant of type `CustomEq` in a pattern, `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
8   --> $DIR/cross-crate-fail.rs:20:9
9    |
10 LL |         <Defaulted as consts::AssocConst>::SOME  => panic!(),
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14