summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/struct-with-invalid-const-param.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/struct-with-invalid-const-param.stderr')
-rw-r--r--src/test/ui/const-generics/struct-with-invalid-const-param.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/struct-with-invalid-const-param.stderr b/src/test/ui/const-generics/struct-with-invalid-const-param.stderr
new file mode 100644
index 000000000..67f497af5
--- /dev/null
+++ b/src/test/ui/const-generics/struct-with-invalid-const-param.stderr
@@ -0,0 +1,9 @@
+error[E0573]: expected type, found const parameter `C`
+ --> $DIR/struct-with-invalid-const-param.rs:3:23
+ |
+LL | struct S<const C: u8>(C);
+ | ^ not a type
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0573`.