]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/fn-bare-coerce-to-block.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / 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 }