1 #![deny(rustdoc::broken_intra_doc_links)]
3 // Test intra-doc links on trait implementations with generics
4 // regression test for issue #92662
6 use std::marker::PhantomData;
12 pub struct Foo<U>(PhantomData<U>);
14 impl<T, U> Bar<T> for Foo<U> {
18 // @has generic_trait_impl/fn.main.html '//a[@href="struct.Foo.html#method.bar"]' 'Foo::bar'
19 /// link to [`Foo::bar`]