fork/rust

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

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

master
1.7 KiB42 linesraw
1error[E0706]: functions in traits cannot be declared `async`
2  --> $DIR/feature-gate-async_fn_in_trait.rs:8: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   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
12   = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
13
14error[E0706]: functions in traits cannot be declared `async`
15  --> $DIR/feature-gate-async_fn_in_trait.rs:14:5
16   |
17LL |     async fn foo() -> impl Sized;
18   |     -----^^^^^^^^^^^^^^^^^^^^^^^^
19   |     |
20   |     `async` because of this
21   |
22   = note: `async` trait functions are not currently supported
23   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
24   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
25   = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
26
27error[E0706]: functions in traits cannot be declared `async`
28  --> $DIR/feature-gate-async_fn_in_trait.rs:22:5
29   |
30LL |     async fn foo() {}
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
38   = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
39
40error: aborting due to 3 previous errors
41
42For more information about this error, try `rustc --explain E0706`.