Description
#88039 fixed #87987 but this issue still fails:
#![feature(capture_disjoint_fields)]
fn foo<MsU>(handler: impl FnOnce() -> MsU + Clone + 'static) {
Box::new(move |value| {
(|_| handler.clone()())(value);
None
}) as Box<dyn Fn(i32) -> Option<i32>>;
}
fn main() {}
Found trying to migrate seed 0.8.0
.
Let me know if you need any more information.
Originally posted by @ehuss in #87987 (comment)