summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/bind-struct-early-modifiers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/bind-struct-early-modifiers.rs')
-rw-r--r--src/test/ui/parser/bind-struct-early-modifiers.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/bind-struct-early-modifiers.rs b/src/test/ui/parser/bind-struct-early-modifiers.rs
new file mode 100644
index 000000000..c4b1937de
--- /dev/null
+++ b/src/test/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 `,`
+ _ => {}
+ }
+}