Add tracking issue
This commit is contained in:
parent
bd16825767
commit
014e8d46f8
5 changed files with 6 additions and 1 deletions
|
@ -651,7 +651,7 @@ declare_features! (
|
|||
(active, const_fn_unsize, "1.53.0", Some(64992), None),
|
||||
|
||||
/// Allows `async {}` expressions in const contexts.
|
||||
(active, const_async_blocks, "1.53.0", None, None),
|
||||
(active, const_async_blocks, "1.53.0", Some(85368), None),
|
||||
|
||||
/// Allows using imported `main` function
|
||||
(active, imported_main, "1.53.0", Some(28937), None),
|
||||
|
|
|
@ -4,6 +4,7 @@ error[E0658]: `async` blocks are not allowed in constants
|
|||
LL | const _: i32 = { core::mem::ManuallyDrop::new(async { 0 }); 4 };
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: `async` blocks are not allowed in statics
|
||||
|
@ -12,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in statics
|
|||
LL | static _FUT: &(dyn Future<Output = ()> + Sync) = &async {};
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
|
|
@ -13,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in constants
|
|||
LL | let f: impl core::future::Future<Output = u8> = async { 1 };
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
|
||||
error[E0493]: destructors cannot be evaluated at compile-time
|
||||
|
|
|
@ -21,6 +21,7 @@ error[E0658]: `async` blocks are not allowed in constants
|
|||
LL | let f: F = async { 1 };
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
|
||||
error[E0493]: destructors cannot be evaluated at compile-time
|
||||
|
|
|
@ -13,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in constants
|
|||
LL | let f: F = async { 1 };
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
|
||||
error[E0493]: destructors cannot be evaluated at compile-time
|
||||
|
|
Loading…
Add table
Reference in a new issue