diff options
Diffstat (limited to 'src/test/ui/issues/issue-17904-2.rs')
-rw-r--r-- | src/test/ui/issues/issue-17904-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17904-2.rs b/src/test/ui/issues/issue-17904-2.rs new file mode 100644 index 000000000..9603da097 --- /dev/null +++ b/src/test/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() {} |