os-rust/tests/ui/feature-gates/feature-gate-coroutines.none.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
3.3 KiB
Text
Raw Normal View History

2019-04-10 16:40:12 -07:00
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:5:5
|
2019-03-09 15:03:44 +03:00
LL | yield true;
| ^^^^^^^^^^
|
2020-02-07 13:07:02 +01:00
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
2023-10-19 21:46:28 +00:00
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-08-14 05:44:32 +02:00
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:10:16
|
LL | let _ = || yield true;
| ^^^^^^^^^^
|
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:18:5
2019-08-14 05:44:32 +02:00
|
LL | yield;
| ^^^^^
|
2020-02-07 13:07:02 +01:00
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
2023-10-19 21:46:28 +00:00
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-08-14 05:44:32 +02:00
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:19:5
2019-08-14 05:44:32 +02:00
|
LL | yield 0;
| ^^^^^^^
|
2020-02-07 13:07:02 +01:00
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
2023-10-19 21:46:28 +00:00
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-08-14 05:44:32 +02:00
2023-10-23 14:29:00 +00:00
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:5:5
|
LL | yield true;
| ^^^^^^^^^^
|
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2023-10-23 14:29:00 +00:00
error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
--> $DIR/feature-gate-coroutines.rs:5:5
|
LL | yield true;
| ^^^^^^^^^^
|
help: use `#[coroutine]` to make this closure a coroutine
|
LL | #[coroutine] fn main() {
| ++++++++++++
2023-10-23 14:29:00 +00:00
error[E0658]: yield syntax is experimental
--> $DIR/feature-gate-coroutines.rs:10:16
2023-10-23 14:29:00 +00:00
|
LL | let _ = || yield true;
| ^^^^^^^^^^
|
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
= help: add `#![feature(coroutines)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2023-10-23 14:29:00 +00:00
error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
--> $DIR/feature-gate-coroutines.rs:10:16
|
LL | let _ = || yield true;
| ^^^^^^^^^^
|
help: use `#[coroutine]` to make this closure a coroutine
|
LL | let _ = #[coroutine] || yield true;
| ++++++++++++
2023-10-19 21:46:28 +00:00
error[E0627]: yield expression outside of coroutine literal
--> $DIR/feature-gate-coroutines.rs:5:5
|
2019-03-09 15:03:44 +03:00
LL | yield true;
| ^^^^^^^^^^
error: aborting due to 9 previous errors
Some errors have detailed explanations: E0627, E0658.
For more information about an error, try `rustc --explain E0627`.