rust/src/test/ui/issues/issue-11515.rs
2018-12-25 21:08:33 -07:00

11 lines
211 B
Rust

#![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
}