diff options
Diffstat (limited to 'tests/rustdoc/async/async-trait-sig.rs')
| -rw-r--r-- | tests/rustdoc/async/async-trait-sig.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/async/async-trait-sig.rs b/tests/rustdoc/async/async-trait-sig.rs new file mode 100644 index 00000000000..be790f6ed7f --- /dev/null +++ b/tests/rustdoc/async/async-trait-sig.rs @@ -0,0 +1,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 + } +} |
