]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/async-trait-sig.rs
Auto merge of #107768 - matthiaskrgr:rollup-9u4cal4, r=matthiaskrgr
[rust.git] / tests / rustdoc / async-trait-sig.rs
1 // edition:2021
2
3 #![feature(async_fn_in_trait)]
4 #![allow(incomplete_features)]
5
6 pub trait Foo {
7     // @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn bar() -> i32"
8     async fn bar() -> i32;
9
10     // @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn baz() -> i32"
11     async fn baz() -> i32 {
12         1
13     }
14 }