From 0f466b06d197729ebeeb72a9503f0a878749ec87 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 20 Nov 2023 11:50:18 -0700 Subject: rustdoc: rename `issue-\d+.rs` tests to have meaningful names --- .../rustdoc/trait-implementations-duplicate-self-45584.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/rustdoc/trait-implementations-duplicate-self-45584.rs (limited to 'tests/rustdoc/trait-implementations-duplicate-self-45584.rs') diff --git a/tests/rustdoc/trait-implementations-duplicate-self-45584.rs b/tests/rustdoc/trait-implementations-duplicate-self-45584.rs new file mode 100644 index 00000000000..8a5f0413826 --- /dev/null +++ b/tests/rustdoc/trait-implementations-duplicate-self-45584.rs @@ -0,0 +1,15 @@ +#![crate_name = "foo"] + +pub trait Bar {} + +// @has 'foo/struct.Foo1.html' +pub struct Foo1; +// @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1 +// @has - '//*[@class="impl"]' "impl Bar for Foo1" +impl Bar for Foo1 {} + +// @has 'foo/struct.Foo2.html' +pub struct Foo2; +// @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1 +// @has - '//*[@class="impl"]' "impl Bar<&'static Foo2, Foo2> for u8" +impl Bar<&'static Foo2, Foo2> for u8 {} -- cgit 1.4.1-3-g733a5