diff options
Diffstat (limited to 'tests/ui/parser/match-refactor-to-expr.fixed')
-rw-r--r-- | tests/ui/parser/match-refactor-to-expr.fixed | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/match-refactor-to-expr.fixed b/tests/ui/parser/match-refactor-to-expr.fixed new file mode 100644 index 000000000..423147b27 --- /dev/null +++ b/tests/ui/parser/match-refactor-to-expr.fixed @@ -0,0 +1,12 @@ +// run-rustfix + +fn main() { + let foo = + //~ NOTE while parsing this `match` expression + Some(4).unwrap_or(5) + //~^ NOTE expected one of `.`, `?`, `{`, or an operator + ; //~ NOTE unexpected token + //~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;` + + println!("{}", foo) +} |