]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/forbid-non-structural_match-types.full.stderr
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / const-generics / forbid-non-structural_match-types.full.stderr
1 error[E0741]: `C` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
2   --> $DIR/forbid-non-structural_match-types.rs:15:19
3    |
4 LL | struct D<const X: C>;
5    |                   ^ `C` doesn't derive both `PartialEq` and `Eq`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0741`.