about summary refs log tree commit diff
path: root/tests/rustdoc/inherent-projections.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-03-21 01:46:52 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-05-04 16:59:10 +0200
commite8139dfd5a747842a8303f33d8c842378913d594 (patch)
tree977f9a1bd7bc5c0e8efc36b3a23c911c64189cc3 /tests/rustdoc/inherent-projections.rs
parent6f8c0557e0b73c73a8a7163a15f4a5a3feca7d5c (diff)
downloadrust-e8139dfd5a747842a8303f33d8c842378913d594.tar.gz
rust-e8139dfd5a747842a8303f33d8c842378913d594.zip
IAT: Introduce AliasKind::Inherent
Diffstat (limited to 'tests/rustdoc/inherent-projections.rs')
-rw-r--r--tests/rustdoc/inherent-projections.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/inherent-projections.rs b/tests/rustdoc/inherent-projections.rs
new file mode 100644
index 00000000000..bdd881ab456
--- /dev/null
+++ b/tests/rustdoc/inherent-projections.rs
@@ -0,0 +1,14 @@
+#![feature(inherent_associated_types)]
+#![allow(incomplete_features)]
+
+// FIXME(fmease): Properly render inherent projections.
+
+// @has inherent_projections/fn.create.html
+// @has - '//pre[@class="rust item-decl"]' "create() -> _"
+pub fn create() -> Owner::Metadata {}
+
+pub struct Owner;
+
+impl Owner {
+    pub type Metadata = ();
+}