1error[E0658]: yield syntax is experimental 2 --> $DIR/yield_in_closure.rs:7:17 3 | 47 | yield v; 5 | ^^^^^^^ 6 | 7 = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information 8 9error[E0277]: expected a `std::ops::FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]` 10 --> $DIR/yield_in_closure.rs:6:14 11 | 126 | .and_then(|v| { 13 | ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]` 14 | 15 = help: the trait `std::ops::FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]` 16 17Some errors have detailed explanations: E0277, E0658. 18For more information about an error, try `rustc --explain E0277`. 19