fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: `async` blocks are not allowed in constants 2 --> $DIR/issue-78722-2.rs:15:20 3 | 4LL | let f: F = async { 1 }; 5 | ^^^^^^^^^^^ 6 | 7 = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information 8 = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable 9 10error[E0271]: expected `{async block@$DIR/issue-78722-2.rs:13:13: 13:21}` to be a future that resolves to `u8`, but it resolves to `()` 11 --> $DIR/issue-78722-2.rs:11:30 12 | 13LL | fn concrete_use() -> F { 14 | ^ expected `()`, found `u8` 15 16error: item constrains opaque type that is not in its signature 17 --> $DIR/issue-78722-2.rs:15:20 18 | 19LL | let f: F = async { 1 }; 20 | ^^^^^^^^^^^ 21 | 22 = note: this item must mention the opaque type in its signature in order to be able to register hidden types 23note: this item must mention the opaque type in its signature in order to be able to register hidden types 24 --> $DIR/issue-78722-2.rs:15:20 25 | 26LL | let f: F = async { 1 }; 27 | ^^^^^^^^^^^ 28 29error: aborting due to 3 previous errors 30 31Some errors have detailed explanations: E0271, E0658. 32For more information about an error, try `rustc --explain E0271`.