]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / rfc-1445-restrict-constants-in-patterns / cant-hide-behind-direct-struct-param.stderr
1 error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/cant-hide-behind-direct-struct-param.rs:22:9
3    |
4 LL |         WRAP_DIRECT_PARAM => { panic!("WRAP_DIRECT_PARAM matched itself"); }
5    |         ^^^^^^^^^^^^^^^^^
6
7 error: aborting due to previous error
8