2018-05-26 23:39:31 +08:00
|
|
|
error[E0658]: yield syntax is experimental (see issue #43122)
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/feature-gate-generators.rs:2:5
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | yield true;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: add #![feature(generators)] to the crate attributes to enable
|
|
|
|
|
2019-01-02 17:14:24 +03:00
|
|
|
error[E0627]: yield statement outside of generator literal
|
|
|
|
--> $DIR/feature-gate-generators.rs:2:5
|
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | yield true;
|
2019-01-02 17:14:24 +03:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-12-06 09:27:47 +01:00
|
|
|
|
2019-01-02 17:14:24 +03:00
|
|
|
Some errors occurred: E0627, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0627`.
|