summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3508.rs
blob: 821e947c707c7266dcf05ca559e7a48ff74a3fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
fn foo<F>(foo2: F)
where
    F: Fn(
          // this comment is deleted
),
{
}

fn foo_block<F>(foo2: F)
where
    F: Fn(
        /* this comment is deleted */
  ),
{
}

fn bar(
    bar2: impl Fn(
          // this comment is deleted
    ),
) {
}

fn bar_block(
    bar2: impl Fn(
        /* this comment is deleted */
    ),
) {
}