diff options
Diffstat (limited to 'src/test/ui/parser/struct-literal-in-match-discriminant.rs')
-rw-r--r-- | src/test/ui/parser/struct-literal-in-match-discriminant.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/parser/struct-literal-in-match-discriminant.rs b/src/test/ui/parser/struct-literal-in-match-discriminant.rs deleted file mode 100644 index ce132df5a..000000000 --- a/src/test/ui/parser/struct-literal-in-match-discriminant.rs +++ /dev/null @@ -1,13 +0,0 @@ -struct Foo { - x: isize, -} - -fn main() { - match Foo { //~ ERROR struct literals are not allowed here - x: 3 - } { - Foo { - x: x - } => {} - } -} |