about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-05 13:53:42 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-05 22:56:23 +0200
commit4ade6eb2a27d0973a9912d609e8e46dd4bde04fb (patch)
tree961ee57428ddc16da06db763d530a9ce24cd1eb4
parentcf184823d1d5b290e051ae1d6344865dfed97d1e (diff)
downloadrust-4ade6eb2a27d0973a9912d609e8e46dd4bde04fb.tar.gz
rust-4ade6eb2a27d0973a9912d609e8e46dd4bde04fb.zip
Add test for new implementations section title
-rw-r--r--src/test/rustdoc/struct-implementations-title.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/struct-implementations-title.rs b/src/test/rustdoc/struct-implementations-title.rs
new file mode 100644
index 00000000000..96eb11311d6
--- /dev/null
+++ b/src/test/rustdoc/struct-implementations-title.rs
@@ -0,0 +1,9 @@
+#![crate_name = "foo"]
+
+pub struct Struc;
+
+// @has foo/struct.Struc.html
+// @has - '//*[@id="main"]/h2[@id="implementations"]' "Implementations"
+impl Struc {
+    pub const S: u64 = 0;
+}