blob: 8bf32efbe2e9145a5f127df2a31e85d403e749c9 [file] [log] [blame]
//@ run-pass
struct Test {
func: Box<dyn FnMut() + 'static>,
}
fn main() {
let closure: Box<dyn Fn() + 'static> = Box::new(|| ());
let mut test = Box::new(Test { func: closure });
(test.func)();
}