mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #135320 - camelid:coroutines-typo, r=lqd
Fix typo in `#[coroutine]` gating error
This commit is contained in:
commit
ee521dfd03
@ -572,7 +572,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
||||
// `#[coroutine]` attribute to be applied to closures to make them coroutines instead
|
||||
gated!(
|
||||
coroutine, Normal, template!(Word), ErrorFollowing,
|
||||
EncodeCrossCrate::No, coroutines, experimental!(coroutines)
|
||||
EncodeCrossCrate::No, coroutines, experimental!(coroutine)
|
||||
),
|
||||
|
||||
// RFC 3543
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0658]: the `#[coroutines]` attribute is an experimental feature
|
||||
error[E0658]: the `#[coroutine]` attribute is an experimental feature
|
||||
--> $DIR/gen_block.rs:20:13
|
||||
|
|
||||
LL | let _ = #[coroutine] || yield true;
|
||||
@ -8,7 +8,7 @@ LL | let _ = #[coroutine] || yield true;
|
||||
= help: add `#![feature(coroutines)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: the `#[coroutines]` attribute is an experimental feature
|
||||
error[E0658]: the `#[coroutine]` attribute is an experimental feature
|
||||
--> $DIR/gen_block.rs:24:13
|
||||
|
|
||||
LL | let _ = #[coroutine] || {};
|
||||
|
@ -44,7 +44,7 @@ LL | let _ = #[coroutine] || yield true;
|
||||
= help: add `#![feature(coroutines)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: the `#[coroutines]` attribute is an experimental feature
|
||||
error[E0658]: the `#[coroutine]` attribute is an experimental feature
|
||||
--> $DIR/gen_block.rs:20:13
|
||||
|
|
||||
LL | let _ = #[coroutine] || yield true;
|
||||
@ -54,7 +54,7 @@ LL | let _ = #[coroutine] || yield true;
|
||||
= help: add `#![feature(coroutines)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: the `#[coroutines]` attribute is an experimental feature
|
||||
error[E0658]: the `#[coroutine]` attribute is an experimental feature
|
||||
--> $DIR/gen_block.rs:24:13
|
||||
|
|
||||
LL | let _ = #[coroutine] || {};
|
||||
|
@ -18,9 +18,9 @@ fn main() {
|
||||
//~^^ ERROR `yield` can only be used in
|
||||
|
||||
let _ = #[coroutine] || yield true; //[none]~ ERROR yield syntax is experimental
|
||||
//~^ ERROR `#[coroutines]` attribute is an experimental feature
|
||||
//~^ ERROR `#[coroutine]` attribute is an experimental feature
|
||||
//~^^ ERROR yield syntax is experimental
|
||||
|
||||
let _ = #[coroutine] || {};
|
||||
//~^ ERROR `#[coroutines]` attribute is an experimental feature
|
||||
//~^ ERROR `#[coroutine]` attribute is an experimental feature
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user