2019-11-18 14:08:03 -06:00
|
|
|
// edition:2018
|
|
|
|
trait T {
|
2020-02-11 01:19:21 -06: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 14:41:40 -05:00
|
|
|
async fn baz() { //~ ERROR functions in traits cannot be declared `async`
|
|
|
|
// Nested item must not ICE.
|
|
|
|
fn a() {}
|
|
|
|
}
|
2019-11-18 14:08:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|