]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/async-trait-fn.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / async-await / async-trait-fn.stderr
1 error[E0706]: trait fns cannot be declared `async`
2 --> $DIR/async-trait-fn.rs:3:5
3 |
4 LL | async fn foo() {}
5 | ^^^^^^^^^^^^^^^^^
6 |
7 = note: `async` trait functions are not currently supported
8 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
9
10 error[E0706]: trait fns cannot be declared `async`
11 --> $DIR/async-trait-fn.rs:4:5
12 |
13 LL | async fn bar(&self) {}
14 | ^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = note: `async` trait functions are not currently supported
17 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0706`.