summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/removed-syntax-with-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/removed-syntax-with-1.rs')
-rw-r--r--tests/ui/parser/removed-syntax-with-1.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/removed-syntax-with-1.rs b/tests/ui/parser/removed-syntax-with-1.rs
new file mode 100644
index 000000000..2c1e152dc
--- /dev/null
+++ b/tests/ui/parser/removed-syntax-with-1.rs
@@ -0,0 +1,10 @@
+fn main() {
+ struct S {
+ foo: (),
+ bar: (),
+ }
+
+ let a = S { foo: (), bar: () };
+ let b = S { foo: () with a, bar: () };
+ //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
+}