diff options
Diffstat (limited to 'tests/ui/yield_bad_expr_in_macro.rs')
-rw-r--r-- | tests/ui/yield_bad_expr_in_macro.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/yield_bad_expr_in_macro.rs b/tests/ui/yield_bad_expr_in_macro.rs new file mode 100644 index 0000000..37fcd34 --- /dev/null +++ b/tests/ui/yield_bad_expr_in_macro.rs @@ -0,0 +1,11 @@ +use async_stream::stream; + +fn main() { + async fn work() {} + + stream! { + tokio::select! { + _ = work() => yield fn f() {}, + } + }; +} |