summaryrefslogtreecommitdiffstats
path: root/tests/ui/functions-closures/fn-bare-coerce-to-block.rs
blob: 922e016ddc808a2bd0e3390bc0aa530871d90b9e (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
// pretty-expanded FIXME #23616

fn bare() {}

fn likes_block<F>(f: F) where F: FnOnce() { f() }

pub fn main() {
    likes_block(bare);
}