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