rust/tests/ui/async-await/async-trait-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
190 B
Rust
Raw Normal View History

//@ edition:2018
//@ check-pass
2019-11-18 12:08:03 -08:00
trait T {
2023-09-13 16:04:42 +00:00
async fn foo() {}
async fn bar(&self) {}
async fn baz() {
2021-04-15 21:41:40 +02:00
// Nested item must not ICE.
fn a() {}
}
2019-11-18 12:08:03 -08:00
}
fn main() {}