fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
828 B25 linesraw
1error[E0706]: functions in traits cannot be declared `async`
2  --> $DIR/async-trait-fn.rs:3:5
3   |
4LL |     async fn foo() {}
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
11
12error[E0706]: functions in traits cannot be declared `async`
13  --> $DIR/async-trait-fn.rs:4:5
14   |
15LL |     async fn bar(&self) {}
16   |     -----^^^^^^^^^^^^^^^^^
17   |     |
18   |     `async` because of this
19   |
20   = note: `async` trait functions are not currently supported
21   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0706`.