]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/async-trait-sig.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[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 }