]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/fn-bare-coerce-to-block.rs
Rollup merge of #101171 - thomcc:fix-winfs-ub, r=ChrisDenton
[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 }