summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/async-trait-fn.rs
blob: 4e5e3ba83e49e2e9205e1eed3367ef867fc3492b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// edition:2018
// check-pass

trait T {
    async fn foo() {}
    async fn bar(&self) {}
    async fn baz() {
        // Nested item must not ICE.
        fn a() {}
    }
}

fn main() {}