fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
630 B14 linesraw
1error: 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   |
4LL |         WRAP_DIRECT_PARAM => { panic!("WRAP_DIRECT_PARAM matched itself"); }
5   |         ^^^^^^^^^^^^^^^^^
6
7error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
8  --> $DIR/cant-hide-behind-direct-struct-param.rs:22:9
9   |
10LL |         WRAP_DIRECT_PARAM => { panic!("WRAP_DIRECT_PARAM matched itself"); }
11   |         ^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14