diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-11-14 21:59:04 +0100 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-11-20 21:09:34 +0100 |
| commit | 7b0cceafeea2b722a941cc5456534cede9053334 (patch) | |
| tree | 3e959fb51f0784f3e7268f2da496d02e451a9a47 /tests/source | |
| parent | 6e1f77664df56e3ebf21c35a5a8abb77e68d079c (diff) | |
Force chains to adhere to restrictions
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/match.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/source/match.rs b/tests/source/match.rs index 9277319295e..b4d35cb3815 100644 --- a/tests/source/match.rs +++ b/tests/source/match.rs @@ -11,7 +11,6 @@ fn foo() { an_expression; foo() } - // Perhaps this should introduce braces? Foo(ref bar) => aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, Pattern1 | Pattern2 | Pattern3 => false, @@ -83,7 +82,11 @@ fn main() { "scopeid"), true, true), - } + }; + + match x{ + y=>{/*Block with comment. Preserve me.*/ } + z=>{stmt();} } } fn matches() { |
