Add tracking issue

This commit is contained in:
Jonas Schievink 2021-05-16 14:59:32 +02:00
parent bd16825767
commit 014e8d46f8
5 changed files with 6 additions and 1 deletions

View file

@ -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),

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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