summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-97278.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/issues/issue-97278.stderr')
-rw-r--r--tests/ui/const-generics/issues/issue-97278.stderr8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ui/const-generics/issues/issue-97278.stderr b/tests/ui/const-generics/issues/issue-97278.stderr
index ff13cb505..31e92f840 100644
--- a/tests/ui/const-generics/issues/issue-97278.stderr
+++ b/tests/ui/const-generics/issues/issue-97278.stderr
@@ -1,8 +1,14 @@
-error[E0741]: `Arc<i32>` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
+error[E0741]: `Bar` must implement `ConstParamTy` to be used as the type of a const generic parameter
--> $DIR/issue-97278.rs:11:20
|
LL | fn test<const BAR: Bar>() {}
| ^^^
+ |
+help: add `#[derive(ConstParamTy)]` to the struct
+ |
+LL + #[derive(ConstParamTy)]
+LL | enum Bar {
+ |
error: aborting due to previous error