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