2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-01-02 16:32:54 -06:00
|
|
|
struct r<F> where F: FnOnce() {
|
|
|
|
field: F,
|
2013-01-08 16:00:45 -06:00
|
|
|
}
|
2011-10-14 19:34:41 -05:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-01-11 11:58:05 -06:00
|
|
|
fn f() {}
|
2015-01-02 16:32:54 -06:00
|
|
|
let _i: r<fn()> = r {field: f as fn()};
|
2013-02-14 13:47:00 -06:00
|
|
|
}
|