2016-12-26 14:34:03 +01:00
|
|
|
fn main() {
|
|
|
|
yield true; //~ ERROR yield syntax is experimental
|
2019-12-23 21:07:13 +08:00
|
|
|
//~^ ERROR yield expression outside of generator literal
|
2016-12-26 14:34:03 +01:00
|
|
|
}
|
2019-08-14 05:44:32 +02:00
|
|
|
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
fn foo() {
|
|
|
|
yield; //~ ERROR yield syntax is experimental
|
|
|
|
yield 0; //~ ERROR yield syntax is experimental
|
|
|
|
}
|