From 4ade6eb2a27d0973a9912d609e8e46dd4bde04fb Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 5 May 2020 13:53:42 +0200 Subject: [PATCH] Add test for new implementations section title --- src/test/rustdoc/struct-implementations-title.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/test/rustdoc/struct-implementations-title.rs 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; +}