summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17904-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-17904-2.rs')
-rw-r--r--tests/ui/issues/issue-17904-2.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-17904-2.rs b/tests/ui/issues/issue-17904-2.rs
new file mode 100644
index 000000000..9603da097
--- /dev/null
+++ b/tests/ui/issues/issue-17904-2.rs
@@ -0,0 +1,6 @@
+// Test that we can parse a unit struct with a where clause, even if
+// it leads to an error later on since `T` is unused.
+
+struct Foo<T> where T: Copy; //~ ERROR parameter `T` is never used
+
+fn main() {}