2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2011-09-19 21:02:53 -05:00
|
|
|
// Issue #922
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-02 16:32:54 -06:00
|
|
|
fn f2<F>(_thing: F) where F: FnOnce() { }
|
2011-09-19 21:02:53 -05:00
|
|
|
|
2015-01-02 16:32:54 -06:00
|
|
|
fn f<F>(thing: F) where F: FnOnce() {
|
2013-02-15 04:44:18 -06:00
|
|
|
f2(thing);
|
2012-01-11 11:58:05 -06:00
|
|
|
}
|
2011-09-19 21:02:53 -05:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-03-01 17:55:31 -06:00
|
|
|
f(|| {});
|
2013-02-14 13:47:00 -06:00
|
|
|
}
|