about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-22 11:03:53 +0100
committerGitHub <noreply@github.com>2022-12-22 11:03:53 +0100
commitd2130e42749ae6144edead4427eb66fa458d8a67 (patch)
treef81acc1ec21b7bf97d2a6bb22c22f67692999de3 /src/test
parent793df7f5f0b517961bf638bbc29c0ec172b4c1f3 (diff)
parent8a4cbf4f7b7777b7553dd6ae05c7d57e5a20ebfa (diff)
downloadrust-d2130e42749ae6144edead4427eb66fa458d8a67.tar.gz
rust-d2130e42749ae6144edead4427eb66fa458d8a67.zip
Rollup merge of #106024 - JulianKnodt:add_term_html_docs, r=notriddle
Fix ICE due to `todo!()` in `rustdoc` for `Term`s

Left a todo awhile ago (I think), so fill it in to print a const for `Term`s.

Fixes #105952.

Should I add some annotations to the rustdoc test?
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc/issue-105952.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-105952.rs b/src/test/rustdoc/issue-105952.rs
new file mode 100644
index 00000000000..e3f1df0063d
--- /dev/null
+++ b/src/test/rustdoc/issue-105952.rs
@@ -0,0 +1,14 @@
+#![crate_name = "foo"]
+
+#![feature(associated_const_equality)]
+pub enum ParseMode {
+    Raw,
+}
+pub trait Parse {
+    const PARSE_MODE: ParseMode;
+}
+pub trait RenderRaw {}
+
+// @hasraw foo/trait.RenderRaw.html 'impl'
+// @hasraw foo/trait.RenderRaw.html 'ParseMode::Raw'
+impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {}