]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-trait-fn.rs
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / async-trait-fn.rs
1 // edition:2018
2 trait T {
3     async fn foo() {} //~ ERROR functions in traits cannot be declared `async`
4     async fn bar(&self) {} //~ ERROR functions in traits cannot be declared `async`
5 }
6
7 fn main() {}