]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-trait-fn.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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     async fn baz() { //~ ERROR functions in traits cannot be declared `async`
6         // Nested item must not ICE.
7         fn a() {}
8     }
9 }
10
11 fn main() {}