summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3508.rs
blob: 5f4e156582d4de035e158f8a6faabd034fe6f0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */)) {}