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 */)) {}