about summary refs log tree commit diff
path: root/src/test/ui/const-generics/unused-const-param.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/unused-const-param.rs')
-rw-r--r--src/test/ui/const-generics/unused-const-param.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/unused-const-param.rs b/src/test/ui/const-generics/unused-const-param.rs
new file mode 100644
index 00000000000..ee98e5eb4a0
--- /dev/null
+++ b/src/test/ui/const-generics/unused-const-param.rs
@@ -0,0 +1,8 @@
+// run-pass
+
+#![feature(const_generics)]
+//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
+
+struct A<const N: usize>; // ok
+
+fn main() {}