rust/tests/ui/liveness/liveness-closure-require-ret.rs
2023-01-11 09:32:08 +00:00

3 lines
133 B
Rust

fn force<F>(f: F) -> isize where F: FnOnce() -> isize { f() }
fn main() { println!("{}", force(|| {})); } //~ ERROR mismatched types