2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn bare() {}
|
2011-10-14 17:22:25 -05:00
|
|
|
|
2015-01-02 16:32:54 -06:00
|
|
|
fn likes_block<F>(f: F) where F: FnOnce() { f() }
|
2011-10-14 17:22:25 -05:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2011-10-14 17:22:25 -05:00
|
|
|
likes_block(bare);
|
2013-02-14 13:47:00 -06:00
|
|
|
}
|