Skip to content

Commit 68ecaf8

Browse files
committed
Use rustfmt::skip (bad formatting is required to trigger the bug)
1 parent 534fb07 commit 68ecaf8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/ui/unnecessary_operation.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ fn main() {
108108
Cout << 16;
109109

110110
// Issue #11575
111+
// Bad formatting is required to trigger the bug
112+
#[rustfmt::skip]
111113
'label: {
112114
break 'label
113115
};

tests/ui/unnecessary_operation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ fn main() {
112112
Cout << 16;
113113

114114
// Issue #11575
115+
// Bad formatting is required to trigger the bug
116+
#[rustfmt::skip]
115117
'label: {
116118
break 'label
117119
};

0 commit comments

Comments
 (0)