diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/match-identifierpattern.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/match-identifierpattern.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/match-identifierpattern.rs b/gcc/testsuite/rust/compile/match-identifierpattern.rs new file mode 100644 index 0000000..6c558ac --- /dev/null +++ b/gcc/testsuite/rust/compile/match-identifierpattern.rs @@ -0,0 +1,9 @@ +fn main() { + let x = 1; + + match x { + 2 => {}, + a @ 3 => {}, + _ => {}, + } +} |