diff options
Diffstat (limited to 'tests/ui/coroutine/issue-69039.rs')
| -rw-r--r-- | tests/ui/coroutine/issue-69039.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/coroutine/issue-69039.rs b/tests/ui/coroutine/issue-69039.rs index fd12414c3d8..13cb50e5828 100644 --- a/tests/ui/coroutine/issue-69039.rs +++ b/tests/ui/coroutine/issue-69039.rs @@ -9,6 +9,7 @@ fn mkstr(my_name: String, my_mood: String) -> String { } fn my_scenario() -> impl Coroutine<String, Yield = &'static str, Return = String> { + #[coroutine] |_arg: String| { let my_name = yield "What is your name?"; let my_mood = yield "How are you feeling?"; |
