diff options
| author | varkor <github@varkor.com> | 2018-10-17 23:51:01 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-10-17 23:51:01 +0100 |
| commit | 0a858dc859f828af2c578bcf23418dd14c767f3c (patch) | |
| tree | 9abacf91bc6ddd2cebddc7f4d0aa8b08d02439e9 /src/test | |
| parent | 5ea8eb55cd9f4547b332f43c9f723de30187c223 (diff) | |
Don't warn about parentheses on `match (return)`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/lint/no-unused-parens-return-block.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/lint/no-unused-parens-return-block.rs b/src/test/ui/lint/no-unused-parens-return-block.rs new file mode 100644 index 00000000000..fc8dbb743e1 --- /dev/null +++ b/src/test/ui/lint/no-unused-parens-return-block.rs @@ -0,0 +1,6 @@ +// run-pass + +fn main() { + match (return) {} // ok + if (return) {} // ok +} |
