--> $DIR/issue-11515.rs:9:33
|
LL | let test = box Test { func: closure };
- | ^^^^^^^ expected trait `std::ops::FnMut`, found trait `std::ops::Fn`
+ | ^^^^^^^ expected trait `FnMut`, found trait `Fn`
|
- = note: expected struct `std::boxed::Box<(dyn std::ops::FnMut() + 'static)>`
- found struct `std::boxed::Box<(dyn std::ops::Fn() + 'static)>`
+ = note: expected struct `Box<(dyn FnMut() + 'static)>`
+ found struct `Box<(dyn Fn() + 'static)>`
error: aborting due to previous error