]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs
Auto merge of #100935 - cuviper:upgrade-android-ci, r=Mark-Simulacrum
[rust.git] / src / test / ui / resolve / issue-70736-async-fn-no-body-def-collector.rs
1 // edition:2018
2
3 async fn free(); //~ ERROR without a body
4
5 struct A;
6 impl A {
7     async fn inherent(); //~ ERROR without body
8 }
9
10 trait B {
11     async fn associated();
12     //~^ ERROR cannot be declared `async`
13 }
14 impl B for A {
15     async fn associated(); //~ ERROR without body
16     //~^ ERROR cannot be declared `async`
17     //~| ERROR has an incompatible type for trait
18 }
19
20 fn main() {}