fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
788 B19 linesraw
1error[E0658]: `async` blocks are not allowed in constants
2  --> $DIR/issue-78722.rs:12: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.rs:10:13: 10:21}` to be a future that resolves to `u8`, but it resolves to `()`
11  --> $DIR/issue-78722.rs:8:30
12   |
13LL |         fn concrete_use() -> F {
14   |                              ^ expected `()`, found `u8`
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0271, E0658.
19For more information about an error, try `rustc --explain E0271`.