diff options
Diffstat (limited to 'src/test/ui/const-generics/forbid-non-structural_match-types.stderr')
-rw-r--r-- | src/test/ui/const-generics/forbid-non-structural_match-types.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/forbid-non-structural_match-types.stderr b/src/test/ui/const-generics/forbid-non-structural_match-types.stderr new file mode 100644 index 000000000..81b9bdfbd --- /dev/null +++ b/src/test/ui/const-generics/forbid-non-structural_match-types.stderr @@ -0,0 +1,9 @@ +error[E0741]: `C` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter + --> $DIR/forbid-non-structural_match-types.rs:11:19 + | +LL | struct D<const X: C>; + | ^ `C` doesn't derive both `PartialEq` and `Eq` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0741`. |