Skip to content

Commit 0b73d9e

Browse files
committed
Add test case
1 parent 0f44f05 commit 0b73d9e

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// rustfmt-wrap_comments: true
2+
fn main() {
3+
match a {
4+
_ => // comment with =>
5+
match b {
6+
// one goes to =>
7+
one => {
8+
println("1");
9+
}
10+
// two goes to =>
11+
two => { println("2"); }
12+
}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// rustfmt-wrap_comments: true
2+
fn main() {
3+
match a {
4+
_ =>
5+
// comment with =>
6+
{
7+
match b {
8+
// one goes to =>
9+
one => {
10+
println("1");
11+
}
12+
// two goes to =>
13+
two => {
14+
println("2");
15+
}
16+
}
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)