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

#![feature(async_fn_in_trait)]
#![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
    }
}