From b84f4cc39e99f801dcd37125dffa67eb796c85b8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 5 May 2025 17:01:08 +0200 Subject: Created `tests/rustdoc/impl` subfolder to limit number of files at the top level --- tests/rustdoc/impl/impl-ref-20175.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/rustdoc/impl/impl-ref-20175.rs (limited to 'tests/rustdoc/impl/impl-ref-20175.rs') diff --git a/tests/rustdoc/impl/impl-ref-20175.rs b/tests/rustdoc/impl/impl-ref-20175.rs new file mode 100644 index 00000000000..b1a9286fd41 --- /dev/null +++ b/tests/rustdoc/impl/impl-ref-20175.rs @@ -0,0 +1,14 @@ +// https://github.com/rust-lang/rust/issues/20175 + +#![crate_name="issue_20175"] + +pub trait Foo { + fn foo(&self) {} +} + +pub struct Bar; + +//@ has issue_20175/struct.Bar.html \ +// '//*[@id="method.foo"]' \ +// 'fn foo' +impl<'a> Foo for &'a Bar {} -- cgit 1.4.1-3-g733a5