diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2016-03-29 23:46:55 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2016-03-29 23:58:45 +0200 |
| commit | 9eee93306a001ef7eb2ee74183e534e62e77d8e4 (patch) | |
| tree | 5aff3dcd3a3c57a04471700b0c9974251ed390cb /tests/source/expr.rs | |
| parent | d3b18d0b45cc9fac3e25bb8cec6e57d685ac24f0 (diff) | |
Format closed ranges
Diffstat (limited to 'tests/source/expr.rs')
| -rw-r--r-- | tests/source/expr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index c5002f5ec15..16953a932a3 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -244,3 +244,15 @@ fn issue767() { } else if let false = false { } } + +fn ranges() { + let x = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa .. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; + let y = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ... bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; + let z = ... x ; + let infi_range_2 = ... ; + + a ... b + + // the expr below won't compile for some reason... + // let a = 0 ... ; +} |
