blob: 262a193609fc9e98db9d08c2fc10250b804b3c6d [file] [log] [blame]
//! Regression test for https://github.com/rust-lang/rust/issues/10718
//@ run-pass
fn f<F:FnOnce()>(p: F) {
p();
}
pub fn main() {
let p = || ();
f(p);
}