fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: functions cannot be both `const` and `async` 2 --> $DIR/no-const-async.rs:4:1 3 | 4LL | pub const async fn x() {} 5 | ^^^^-----^-----^^^^^^^^^^ 6 | | | 7 | | `async` because of this 8 | `const` because of this 9 10error[E0723]: `impl Trait` in const fn is unstable 11 --> $DIR/no-const-async.rs:4:24 12 | 13LL | pub const async fn x() {} 14 | ^ 15 | 16 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information 17 = help: add `#![feature(const_fn)]` to the crate attributes to enable 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0723`.