summaryrefslogtreecommitdiff
path: root/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr')
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
index 32f7dea8263..938fb08b795 100644
--- a/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
@@ -3,6 +3,8 @@ error[E0770]: the type of const parameters must not depend on other generic para
|
LL | pub struct Dependent<T, const X: T>([(); X]);
| ^ the type must not depend on the parameter `T`
+ |
+ = note: type parameters may not be used in the type of const parameters
error[E0392]: parameter `T` is never used
--> $DIR/const-param-type-depends-on-type-param.rs:11:22