summaryrefslogtreecommitdiffstats
path: root/tests/ui/liveness/liveness-closure-require-ret.rs
blob: b86d1fe4a660cf3c4cd7edac7aee22321844870e (plain)
1
2
fn force<F>(f: F) -> isize where F: FnOnce() -> isize { f() }
fn main() { println!("{}", force(|| {})); } //~ ERROR mismatched types