about summary refs log tree commit diff
path: root/tests/rustdoc/async/async-trait.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:35:41 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:49:12 +0200
commit27e39c3ac6173e4a9e9e1439bfc48f0ca1505542 (patch)
tree7e1940cc45292e062475d985587f6f9b9b811a15 /tests/rustdoc/async/async-trait.rs
parente14e19a67dcdd7437b29bd37b4aa1fde3e5fecee (diff)
downloadrust-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.rs')
-rw-r--r--tests/rustdoc/async/async-trait.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc/async/async-trait.rs b/tests/rustdoc/async/async-trait.rs
new file mode 100644
index 00000000000..a6ee340e2dd
--- /dev/null
+++ b/tests/rustdoc/async/async-trait.rs
@@ -0,0 +1,15 @@
+//@ aux-build:async-trait-dep.rs
+//@ edition:2021
+
+#![allow(incomplete_features)]
+
+extern crate async_trait_dep;
+
+pub struct Oink {}
+
+//@ has 'async_trait/struct.Oink.html' '//h4[@class="code-header"]' "async fn woof()"
+impl async_trait_dep::Meow for Oink {
+    async fn woof() {
+        todo!()
+    }
+}