diff options
Diffstat (limited to 'tests/ui/coroutine/yield-in-static.rs')
| -rw-r--r-- | tests/ui/coroutine/yield-in-static.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/coroutine/yield-in-static.rs b/tests/ui/coroutine/yield-in-static.rs index 45e0380d46d..99d08913e64 100644 --- a/tests/ui/coroutine/yield-in-static.rs +++ b/tests/ui/coroutine/yield-in-static.rs @@ -2,5 +2,6 @@ static B: u8 = { yield 3u8; 3u8}; //~^ ERROR yield expression outside +//~| ERROR `yield` can only be used in fn main() {} |
