diff options
| author | DarkDrek <wackerei@gmail.com> | 2016-01-12 21:13:59 +0100 |
|---|---|---|
| committer | DarkDrek <wackerei@gmail.com> | 2016-01-12 21:13:59 +0100 |
| commit | 937e26d4e1b28a2b4609ccc76b14a7c873333c02 (patch) | |
| tree | ba3c58a966c575ac81f7f46647e9882ad8f505c0 /tests/source/expr.rs | |
| parent | 36b82f3b00cfa7ce31f5c8cbe7e17114edc9adf4 (diff) | |
fixes parsing issue #767
Diffstat (limited to 'tests/source/expr.rs')
| -rw-r--r-- | tests/source/expr.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index 26b22ed29be..c5002f5ec15 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -233,3 +233,14 @@ fn blocks() { println!("yay arithmetix!"); }; } + +fn issue767() { + if false { + if false { + } else { + // A let binding here seems necessary to trigger it. + let _ = (); + } + } else if let false = false { + } +} |
