blob: 7eab2a26178af96683102468c0c54a9c5a8a6c5a (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(box_syntax)]
struct Test {
func: Box<FnMut()+'static>
}
fn main() {
let closure: Box<Fn()+'static> = Box::new(|| ());
let test = box Test { func: closure }; //~ ERROR mismatched types
}
|