summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unsized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/unsized.rs')
-rw-r--r--tests/ui/parser/unsized.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/unsized.rs b/tests/ui/parser/unsized.rs
new file mode 100644
index 000000000..e7fd7a196
--- /dev/null
+++ b/tests/ui/parser/unsized.rs
@@ -0,0 +1,7 @@
+// Test syntax checks for `type` keyword.
+
+struct S1 for type;
+//~^ ERROR expected `where`, `{`, `(`, or `;` after struct name, found keyword `for`
+
+pub fn main() {
+}