rust/tests/ui/liveness/liveness-closure-require-ret.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

3 lines
133 B
Rust
Raw Normal View History

fn force<F>(f: F) -> isize where F: FnOnce() -> isize { f() }
2014-10-14 20:07:11 -05:00
fn main() { println!("{}", force(|| {})); } //~ ERROR mismatched types