]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-70736-async-fn-no-body-def-collector.stderr
1 error: free function without a body
2   --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:3:1
3    |
4 LL | async fn free();
5    | ^^^^^^^^^^^^^^^-
6    |                |
7    |                help: provide a definition for the function: `{ <body> }`
8
9 error: associated function in `impl` without body
10   --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:7:5
11    |
12 LL |     async fn inherent();
13    |     ^^^^^^^^^^^^^^^^^^^-
14    |                        |
15    |                        help: provide a definition for the function: `{ <body> }`
16
17 error: associated function in `impl` without body
18   --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
19    |
20 LL |     async fn associated();
21    |     ^^^^^^^^^^^^^^^^^^^^^-
22    |                          |
23    |                          help: provide a definition for the function: `{ <body> }`
24
25 error[E0706]: functions in traits cannot be declared `async`
26   --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:5
27    |
28 LL |     async fn associated();
29    |     -----^^^^^^^^^^^^^^^^^
30    |     |
31    |     `async` because of this
32    |
33    = note: `async` trait functions are not currently supported
34    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
35    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
36    = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
37
38 error[E0706]: functions in traits cannot be declared `async`
39   --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
40    |
41 LL |     async fn associated();
42    |     -----^^^^^^^^^^^^^^^^^
43    |     |
44    |     `async` because of this
45    |
46    = note: `async` trait functions are not currently supported
47    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
48    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
49    = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
50
51 error: aborting due to 5 previous errors
52
53 For more information about this error, try `rustc --explain E0706`.