]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/fn-bare-coerce-to-block.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / ui / functions-closures / fn-bare-coerce-to-block.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 fn bare() {}
5
6 fn likes_block<F>(f: F) where F: FnOnce() { f() }
7
8 pub fn main() {
9     likes_block(bare);
10 }