summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/removed-syntax-field-let.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/removed-syntax-field-let.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/removed-syntax-field-let.rs b/src/test/ui/parser/removed-syntax-field-let.rs
new file mode 100644
index 000000000..6d64de296
--- /dev/null
+++ b/src/test/ui/parser/removed-syntax-field-let.rs
@@ -0,0 +1,6 @@
+struct S {
+ let foo: (),
+ //~^ ERROR expected identifier, found keyword `let`
+}
+
+fn main() {}