//@ run-pass pub struct Data { function: fn() -> T, } impl Data { pub const fn new(function: fn() -> T) -> Data { Data { function: function, } } } pub static DATA: Data = Data::new(|| { 413i32 }); fn main() { print!("{:?}", (DATA.function)()); }