summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/async-trait-sig.rs
blob: db1848f716d91bafd7ba26084642143d3c4272a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// edition:2021

#![allow(incomplete_features)]

pub trait Foo {
    // @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn bar() -> i32"
    async fn bar() -> i32;

    // @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn baz() -> i32"
    async fn baz() -> i32 {
        1
    }
}