]> git.lizzy.rs Git - rust.git/blob - src/test/ui/purity-infer.rs
Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett
[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 }