Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
yield-in-static.rs
blob: 99d08913e64ce84308cfbec30b3fc2fdc8663176 [
file
] [
log
] [
blame
]
#![
feature
(
coroutines
)]
static
B
:
u8
=
{
yield
3u8
;
3u8
};
//~^ ERROR yield expression outside
//~| ERROR `yield` can only be used in
fn
main
()
{}