Skip to content

Commit 37c2c38

Browse files
committed
Extent pretty-print test
1 parent 1b681d6 commit 37c2c38

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/pretty/if-attr.rs

+9
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@ fn if_let() {
2424
if let Some(_) = Some(true) { }
2525
}
2626

27+
#[cfg(FALSE)]
28+
fn let_attr_if() {
29+
let _ = #[attr] if let _ = 0 { };
30+
let _ = #[attr] if true { };
31+
32+
let _ = #[attr] if let _ = 0 { } else { };
33+
let _ = #[attr] if true { } else { };
34+
}
35+
2736

2837
fn main() { }

0 commit comments

Comments
 (0)