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
188 B
Rust
Raw Normal View History

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