2019-11-18 12:08:03 -08:00
|
|
|
// edition:2018
|
|
|
|
trait T {
|
2020-02-11 08:19:21 +01:00
|
|
|
async fn foo() {} //~ ERROR functions in traits cannot be declared `async`
|
|
|
|
async fn bar(&self) {} //~ ERROR functions in traits cannot be declared `async`
|
2021-04-15 21:41:40 +02:00
|
|
|
async fn baz() { //~ ERROR functions in traits cannot be declared `async`
|
|
|
|
// Nested item must not ICE.
|
|
|
|
fn a() {}
|
|
|
|
}
|
2019-11-18 12:08:03 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|