summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/bind-struct-early-modifiers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/bind-struct-early-modifiers.rs')
-rw-r--r--tests/ui/parser/bind-struct-early-modifiers.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/bind-struct-early-modifiers.rs b/tests/ui/parser/bind-struct-early-modifiers.rs
new file mode 100644
index 000000000..c4b1937de
--- /dev/null
+++ b/tests/ui/parser/bind-struct-early-modifiers.rs
@@ -0,0 +1,7 @@
+fn main() {
+ struct Foo { x: isize }
+ match (Foo { x: 10 }) {
+ Foo { ref x: ref x } => {}, //~ ERROR expected `,`
+ _ => {}
+ }
+}