]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/remove_blank_lines.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / source / remove_blank_lines.rs
CommitLineData
f20569fa
XL
1fn main() {
2
3
4
5
6 let x = 1;
7
8
9 let y = 2;
10
11
12 println!("x + y = {}", x + y);
13
14
15
16}
17
18
19fn foo() {
20
21 #![attribute]
22
23 let x = 1;
24
25 // comment
26
27
28}
29// comment after item
30
31
32// comment before item
33fn bar() {
34 let x = 1;
35 // comment after statement
36
37
38 // comment before statement
39 let y = 2;
40 let z = 3;
41
42
43 println!("x + y + z = {}", x + y + z);
44}