summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/forbid-non-structural_match-types.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/forbid-non-structural_match-types.stderr')
-rw-r--r--tests/ui/const-generics/forbid-non-structural_match-types.stderr12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/ui/const-generics/forbid-non-structural_match-types.stderr b/tests/ui/const-generics/forbid-non-structural_match-types.stderr
index 81b9bdfbd..0efb9e9d3 100644
--- a/tests/ui/const-generics/forbid-non-structural_match-types.stderr
+++ b/tests/ui/const-generics/forbid-non-structural_match-types.stderr
@@ -1,8 +1,14 @@
-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
+error[E0741]: `C` must implement `ConstParamTy` to be used as the type of a const generic parameter
+ --> $DIR/forbid-non-structural_match-types.rs:13:19
|
LL | struct D<const X: C>;
- | ^ `C` doesn't derive both `PartialEq` and `Eq`
+ | ^
+ |
+help: add `#[derive(ConstParamTy, PartialEq, Eq)]` to the struct
+ |
+LL + #[derive(ConstParamTy, PartialEq, Eq)]
+LL | struct C;
+ |
error: aborting due to previous error