mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
d948485371
In particular if they contain only a single-line comment. Fixes #493
41 lines
732 B
Rust
41 lines
732 B
Rust
// rustfmt-normalize_comments: true
|
|
|
|
fn main() {
|
|
if
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
cond
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
{
|
|
}
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
else
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
if
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
cond
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
{
|
|
}
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
else
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
{
|
|
}
|
|
|
|
if
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
let Some(x) = y
|
|
// shouldn't be dropped
|
|
// shouldn't be dropped
|
|
{}
|
|
}
|