rust/tests/source/remove_blank_lines.rs

45 lines
372 B
Rust
Raw Normal View History

fn main() {
let x = 1;
2017-12-05 09:45:19 +01:00
let y = 2;
println!("x + y = {}", x + y);
}
2017-12-05 09:45:19 +01:00
fn foo() {
#![attribute]
let x = 1;
// comment
}
2017-12-05 09:45:19 +01:00
// comment after item
// comment before item
fn bar() {
let x = 1;
// comment after statement
// comment before statment
let y = 2;
let z = 3;
println!("x + y + z = {}", x + y + z);
}