rust/tests/source/remove_blank_lines.rs

45 lines
373 B
Rust
Raw Normal View History

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