]> git.lizzy.rs Git - rust.git/blob - src/test/ui/purity-infer.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / purity-infer.rs
1 // run-pass
2
3 fn something<F>(f: F) where F: FnOnce() { f(); }
4 pub fn main() {
5     something(|| println!("hi!") );
6 }