blob: e2062e82725c0507fad934ec9f6720dfab28ea71 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | // edition:2018
trait T {
    async fn foo() {} //~ ERROR functions in traits cannot be declared `async`
    async fn bar(&self) {} //~ ERROR functions in traits cannot be declared `async`
    async fn baz() { //~ ERROR functions in traits cannot be declared `async`
        // Nested item must not ICE.
        fn a() {}
    }
}
fn main() {}
 |