]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issues/issue-95307.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / async-await / issues / issue-95307.stderr
CommitLineData
923072b8
FG
1error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/issue-95307.rs:7:5
3 |
4LL | async fn new() -> [u8; _];
5 | -----^^^^^^^^^^^^^^^^^^^^^
6 | |
7 | `async` because of this
8 |
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
f2b60f7d 11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
2b03887a 12 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
f2b60f7d
FG
13
14error: in expressions, `_` can only be used on the left-hand side of an assignment
15 --> $DIR/issue-95307.rs:7:28
16 |
17LL | async fn new() -> [u8; _];
18 | ^ `_` not allowed here
923072b8
FG
19
20error[E0658]: using `_` for array lengths is unstable
21 --> $DIR/issue-95307.rs:7:28
22 |
23LL | async fn new() -> [u8; _];
24 | ^
25 |
26 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
27 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
28
923072b8
FG
29error: aborting due to 3 previous errors
30
31Some errors have detailed explanations: E0658, E0706.
32For more information about an error, try `rustc --explain E0658`.