summaryrefslogtreecommitdiffstats
path: root/src/test/ui/enum/issue-67945-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/enum/issue-67945-2.rs')
-rw-r--r--src/test/ui/enum/issue-67945-2.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/enum/issue-67945-2.rs b/src/test/ui/enum/issue-67945-2.rs
new file mode 100644
index 000000000..e5044468d
--- /dev/null
+++ b/src/test/ui/enum/issue-67945-2.rs
@@ -0,0 +1,8 @@
+#![feature(type_ascription)]
+
+enum Bug<S> { //~ ERROR parameter `S` is never used
+ Var = 0: S,
+ //~^ ERROR generic parameters may not be used
+}
+
+fn main() {}