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