diff options
Diffstat (limited to 'tests/ui/binding/match-naked-record-expr.rs')
-rw-r--r-- | tests/ui/binding/match-naked-record-expr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/binding/match-naked-record-expr.rs b/tests/ui/binding/match-naked-record-expr.rs new file mode 100644 index 000000000..c23ff8c94 --- /dev/null +++ b/tests/ui/binding/match-naked-record-expr.rs @@ -0,0 +1,12 @@ +// run-pass +// pretty-expanded FIXME #23616 + +struct X { x: isize } + +pub fn main() { + let _x = match 0 { + _ => X { + x: 0 + }.x + }; +} |