about summary refs log tree commit diff
path: root/src/test/rustdoc/async-trait.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-27 21:36:07 +0000
committerbors <bors@rust-lang.org>2022-10-27 21:36:07 +0000
commit126dbdc9c78446ad4cf41f5f8510a7cee59ff966 (patch)
treef4b91936c399e3f916fc8962813b6c87285617a9 /src/test/rustdoc/async-trait.rs
parent0da281b6068a7d889ae89a9bd8991284cc9b7535 (diff)
parentae4dc125196a62447ab07ba6b130d936f56a66d0 (diff)
downloadrust-126dbdc9c78446ad4cf41f5f8510a7cee59ff966.tar.gz
rust-126dbdc9c78446ad4cf41f5f8510a7cee59ff966.zip
Auto merge of #103629 - matthiaskrgr:rollup-r94tqfa, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - #103110 (remove redundant Send impl for references)
 - #103255 (Clean up hidden type registration)
 - #103394 (Clarify documentation about the memory layout of `UnsafeCell`)
 - #103408 (Clean return-position `impl Trait` in traits correctly in rustdoc)
 - #103505 (rustdoc: parse self-closing tags and attributes in `invalid_html_tags`)
 - #103524 (rustc_metadata: Add struct and variant constructors to module children at encoding time)
 - #103544 (Add flag to forbid recovery in the parser)
 - #103616 (rustdoc: remove CSS workaround for Firefox 29)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc/async-trait.rs')
-rw-r--r--src/test/rustdoc/async-trait.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc/async-trait.rs b/src/test/rustdoc/async-trait.rs
new file mode 100644
index 00000000000..a473e467473
--- /dev/null
+++ b/src/test/rustdoc/async-trait.rs
@@ -0,0 +1,16 @@
+// aux-build:async-trait-dep.rs
+// edition:2021
+
+#![feature(async_fn_in_trait)]
+#![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!()
+    }
+}