1 // we need to make sure that intra-doc links on trait impls get resolved in the right scope
3 #![deny(broken_intra_doc_links)]
6 pub struct SomethingOutOfScope;
10 use inner::SomethingOutOfScope;
13 pub struct OtherStruct;
15 /// Let's link to [SomethingOutOfScope] while we're at it.
16 impl SomeTrait for OtherStruct {}
19 pub trait SomeTrait {}
21 pub struct SomeStruct;
23 fn __implementation_details() {
24 use inner::SomethingOutOfScope;
26 // FIXME: intra-links resolve in their nearest module scope, not their actual scope in cases
28 // Let's link to [SomethingOutOfScope] while we're at it.
29 impl SomeTrait for SomeStruct {}