]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/async-trait-fn.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / async-await / async-trait-fn.stderr
CommitLineData
74b04a01 1error[E0706]: functions in traits cannot be declared `async`
60c5eb7d
XL
2 --> $DIR/async-trait-fn.rs:3:5
3 |
4LL | async fn foo() {}
f2b60f7d 5 | -----^^^^^^^^^
74b04a01
XL
6 | |
7 | `async` because of this
60c5eb7d
XL
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
60c5eb7d 13
74b04a01 14error[E0706]: functions in traits cannot be declared `async`
2b03887a 15 --> $DIR/async-trait-fn.rs:4:5
60c5eb7d
XL
16 |
17LL | async fn bar(&self) {}
f2b60f7d 18 | -----^^^^^^^^^^^^^^
74b04a01
XL
19 | |
20 | `async` because of this
60c5eb7d
XL
21 |
22 = note: `async` trait functions are not currently supported
23 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
f2b60f7d 24 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
2b03887a 25 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
60c5eb7d 26
cdc7bbd5 27error[E0706]: functions in traits cannot be declared `async`
2b03887a 28 --> $DIR/async-trait-fn.rs:5:5
f2b60f7d
FG
29 |
30LL | async fn baz() {
31 | -----^^^^^^^^^
32 | |
33 | `async` because of this
34 |
35 = note: `async` trait functions are not currently supported
36 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
37 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
2b03887a 38 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
cdc7bbd5 39
2b03887a 40error: aborting due to 3 previous errors
60c5eb7d 41
2b03887a 42For more information about this error, try `rustc --explain E0706`.