2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-11-26 07:12:18 -06:00
|
|
|
fn f<F:FnOnce()>(p: F) {
|
2013-11-29 12:53:05 -06:00
|
|
|
p();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
2015-02-01 11:44:15 -06:00
|
|
|
let p = || ();
|
2013-11-29 12:53:05 -06:00
|
|
|
f(p);
|
|
|
|
}
|