]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/assoc-item-not-in-scope.rs
Rollup merge of #100029 - hdelc:master, r=cjgillot
[rust.git] / src / test / rustdoc-ui / assoc-item-not-in-scope.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
2
3 #[derive(Debug)]
4 /// Link to [`S::fmt`]
5 //~^ ERROR unresolved link
6 pub struct S;
7
8 pub mod inner {
9     use std::fmt::Debug;
10     use super::S;
11
12     /// Link to [`S::fmt`]
13     pub fn f() {}
14 }
15
16 pub mod ambiguous {
17     use std::fmt::{Display, Debug};
18     use super::S;
19
20     /// Link to [`S::fmt`]
21     pub fn f() {}
22 }