]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue_3853.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue_3853.rs
1 fn by_ref_with_block_before_ident() {
2     if let Some(ref /*def*/ state) = foo {
3         println!("asdfasdfasdf");
4     }
5 }
6
7 fn mut_block_before_ident() {
8     if let Some(mut /*def*/ state) = foo {
9         println!("123");
10     }
11 }
12
13 fn ref_and_mut_blocks_before_ident() {
14     if let Some(ref /*abc*/ mut /*def*/ state) = foo {
15         println!("deefefefefefwea");
16     }
17 }
18
19 fn sub_pattern() {
20     let foo @ /*foo*/ bar(f) = 42;
21 }
22
23 fn no_prefix_block_before_ident() {
24     if let Some(/*def*/ state) = foo {
25         println!("129387123123");
26     }
27 }
28
29 fn issue_3853() {
30     if let Some(ref /*mut*/ state) = foo {}
31 }
32
33 fn double_slash_comment_between_lhs_and_rhs() {
34     if let Some(e) =
35         // self.foo.bar(e, tx)
36         packet.transaction.state.committed
37     {
38         // body
39         println!("a2304712836123");
40     }
41 }
42
43 fn block_comment_between_lhs_and_rhs() {
44     if let Some(ref /*def*/ mut /*abc*/ state) = /*abc*/ foo {
45         println!("asdfasdfasdf");
46     }
47 }