mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
13 lines
345 B
Rust
13 lines
345 B
Rust
// 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() {}
|