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