diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:35:41 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:49:12 +0200 |
| commit | 27e39c3ac6173e4a9e9e1439bfc48f0ca1505542 (patch) | |
| tree | 7e1940cc45292e062475d985587f6f9b9b811a15 /tests/rustdoc/async/async-trait-sig.rs | |
| parent | e14e19a67dcdd7437b29bd37b4aa1fde3e5fecee (diff) | |
| download | rust-27e39c3ac6173e4a9e9e1439bfc48f0ca1505542.tar.gz rust-27e39c3ac6173e4a9e9e1439bfc48f0ca1505542.zip | |
Created `tests/rustdoc/async` subfolder to limit number of files at the top level
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 + } +} |
