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-15 01:07:11 +00:00
fn main() { println!("{}", force(|| {})); } //~ ERROR mismatched types