1 warning: unresolved link to `Foo::baz`
2 --> $DIR/warning.rs:3:23
4 LL | //! Test with [Foo::baz], [Bar::foo], ...
5 | ^^^^^^^^ the struct `Foo` has no field or associated item named `baz`
7 = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
9 warning: unresolved link to `Bar::foo`
10 --> $DIR/warning.rs:3:35
12 LL | //! Test with [Foo::baz], [Bar::foo], ...
13 | ^^^^^^^^ no item named `Bar` in scope
15 warning: unresolved link to `Uniooon::X`
16 --> $DIR/warning.rs:6:13
18 LL | //! , [Uniooon::X] and [Qux::Z].
19 | ^^^^^^^^^^ no item named `Uniooon` in scope
21 warning: unresolved link to `Qux::Z`
22 --> $DIR/warning.rs:6:30
24 LL | //! , [Uniooon::X] and [Qux::Z].
25 | ^^^^^^ no item named `Qux` in scope
27 warning: unresolved link to `Uniooon::X`
28 --> $DIR/warning.rs:10:14
30 LL | //! , [Uniooon::X] and [Qux::Z].
31 | ^^^^^^^^^^ no item named `Uniooon` in scope
33 warning: unresolved link to `Qux::Z`
34 --> $DIR/warning.rs:10:31
36 LL | //! , [Uniooon::X] and [Qux::Z].
37 | ^^^^^^ no item named `Qux` in scope
39 warning: unresolved link to `Qux:Y`
40 --> $DIR/warning.rs:14:13
43 | ^^^^^ no item named `Qux:Y` in scope
45 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
47 warning: unresolved link to `BarA`
48 --> $DIR/warning.rs:21:10
50 LL | /// bar [BarA] bar
51 | ^^^^ no item named `BarA` in scope
53 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
55 warning: unresolved link to `BarB`
56 --> $DIR/warning.rs:27:9
59 | ^^^^ no item named `BarB` in scope
61 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
63 warning: unresolved link to `BarC`
64 --> $DIR/warning.rs:34:6
67 | ^^^^ no item named `BarC` in scope
69 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
71 warning: unresolved link to `BarD`
72 --> $DIR/warning.rs:45:1
74 LL | #[doc = "Foo\nbar [BarD] bar\nbaz"]
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 = note: the link appears in this line:
81 = note: no item named `BarD` in scope
82 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
84 warning: unresolved link to `BarF`
85 --> $DIR/warning.rs:50:9
90 LL | f!("Foo\nbar [BarF] bar\nbaz");
91 | ------------------------------ in this macro invocation
93 = note: the link appears in this line:
97 = note: no item named `BarF` in scope
98 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
99 = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info)
101 warning: unresolved link to `error`
102 --> $DIR/warning.rs:58:30
104 LL | * time to introduce a link [error]*/
105 | ^^^^^ no item named `error` in scope
107 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
109 warning: unresolved link to `error`
110 --> $DIR/warning.rs:64:30
112 LL | * time to introduce a link [error]
113 | ^^^^^ no item named `error` in scope
115 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
117 warning: unresolved link to `error`
118 --> $DIR/warning.rs:68:1
120 LL | #[doc = "single line [error]"]
121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123 = note: the link appears in this line:
127 = note: no item named `error` in scope
128 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
130 warning: unresolved link to `error`
131 --> $DIR/warning.rs:71:1
133 LL | #[doc = "single line with \"escaping\" [error]"]
134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136 = note: the link appears in this line:
138 single line with "escaping" [error]
140 = note: no item named `error` in scope
141 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
143 warning: unresolved link to `error`
144 --> $DIR/warning.rs:74:1
146 LL | / /// Item docs.
147 LL | | #[doc="Hello there!"]
151 = note: the link appears in this line:
155 = note: no item named `error` in scope
156 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
158 warning: unresolved link to `error1`
159 --> $DIR/warning.rs:80:11
161 LL | /// docs [error1]
162 | ^^^^^^ no item named `error1` in scope
164 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
166 warning: unresolved link to `error2`
167 --> $DIR/warning.rs:82:11
169 LL | /// docs [error2]
170 | ^^^^^^ no item named `error2` in scope
172 = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
174 warning: 19 warnings emitted