diff options
Diffstat (limited to 'tests/mir-opt/inline/inline_coroutine.rs')
| -rw-r--r-- | tests/mir-opt/inline/inline_coroutine.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/inline_coroutine.rs b/tests/mir-opt/inline/inline_coroutine.rs index 180f9d4a6fd..07f8fb20f7e 100644 --- a/tests/mir-opt/inline/inline_coroutine.rs +++ b/tests/mir-opt/inline/inline_coroutine.rs @@ -16,5 +16,6 @@ fn main() { #[inline] pub fn g() -> impl Coroutine<bool> { #[inline] - |a| { yield if a { 7 } else { 13 } } + #[coroutine] + |a| yield if a { 7 } else { 13 } } |
