diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-08-01 14:22:31 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-08-02 12:40:02 +0200 |
| commit | 0f640b06ddac1ff6033fba2836f3ad0e71390db7 (patch) | |
| tree | 75b2514e44d064ab2c16193b5999eb55d66eedee /tests/source/expr.rs | |
| parent | 7214008f6080a909f8d7af7713fbd207fab93ca5 (diff) | |
Properly format unsafe blocks
Diffstat (limited to 'tests/source/expr.rs')
| -rw-r--r-- | tests/source/expr.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index bfa1edc5311..e7862b83e50 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -73,3 +73,21 @@ fn bar() { aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, a); } + +fn baz() { + unsafe /* {}{}{}{{{{}} */ { + let foo = 1u32; + } + + unsafe /* very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong comment */ {} + + unsafe // So this is a very long comment. + // Multi-line, too. + // Will it still format correctly? + { + } + + unsafe { + // Regular unsafe block + } +} |
