rust/tests/ui/moves/move-nullary-fn.rs

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

14 lines
192 B
Rust
Raw Normal View History

//@ run-pass
// Issue #922
//@ pretty-expanded FIXME #23616
2015-01-02 22:32:54 +00:00
fn f2<F>(_thing: F) where F: FnOnce() { }
2015-01-02 22:32:54 +00:00
fn f<F>(thing: F) where F: FnOnce() {
2013-02-15 10:44:18 +00:00
f2(thing);
}
pub fn main() {
f(|| {});
}