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