summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/removed-syntax-with-1.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/removed-syntax-with-1.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/parser/removed-syntax-with-1.rs b/src/test/ui/parser/removed-syntax-with-1.rs
new file mode 100644
index 000000000..2c1e152dc
--- /dev/null
+++ b/src/test/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`
+}