aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/yield_in_closure.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/yield_in_closure.stderr')
-rw-r--r--tests/ui/yield_in_closure.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/yield_in_closure.stderr b/tests/ui/yield_in_closure.stderr
new file mode 100644
index 0000000..77092e0
--- /dev/null
+++ b/tests/ui/yield_in_closure.stderr
@@ -0,0 +1,18 @@
+error[E0658]: yield syntax is experimental
+ --> $DIR/yield_in_closure.rs:7:17
+ |
+7 | yield v;
+ | ^^^^^^^
+ |
+ = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
+
+error[E0277]: expected a `std::ops::FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
+ --> $DIR/yield_in_closure.rs:6:14
+ |
+6 | .and_then(|v| {
+ | ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
+ |
+ = help: the trait `std::ops::FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
+
+Some errors have detailed explanations: E0277, E0658.
+For more information about an error, try `rustc --explain E0277`.