]> git.lizzy.rs Git - rust.git/commitdiff
Add test for new implementations section title
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 5 May 2020 11:53:42 +0000 (13:53 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 5 May 2020 20:56:23 +0000 (22:56 +0200)
src/test/rustdoc/struct-implementations-title.rs [new file with mode: 0644]

diff --git a/src/test/rustdoc/struct-implementations-title.rs b/src/test/rustdoc/struct-implementations-title.rs
new file mode 100644 (file)
index 0000000..96eb113
--- /dev/null
@@ -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;
+}