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

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