1 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/closure-origin-tuple-diagnostics.rs:1:12
4 LL | #![feature(capture_disjoint_fields)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
10 error[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnOnce`
11 --> $DIR/closure-origin-tuple-diagnostics.rs:11:13
14 | ^^ this closure implements `FnOnce`, not `Fn`
16 | --- closure is `FnOnce` because it moves the variable `s.1` out of its environment
19 | --------- the requirement to implement `Fn` derives from here
21 error: aborting due to previous error; 1 warning emitted
23 For more information about this error, try `rustc --explain E0525`.