summary refs log tree commit diff
path: root/tests/rustdoc/async-trait-sig.rs
blob: 40e68ce9b3c58c9f3d9473df7da6cfdfdc3b01a9 (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
    }
}