File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,11 @@ fn issue_2343() {}
203203/// __|_ _|__||_|
204204fn pulldown_cmark_crash ( ) { }
205205
206+ /// This should not lint
207+ /// (regression test for #7758)
208+ /// [plain text][path::to::item]
209+ fn intra_doc_link ( ) { }
210+
206211// issue #7033 - generic_const_exprs ICE
207212struct S < T , const N : usize >
208213where [ ( ) ; N . checked_next_power_of_two ( ) . unwrap ( ) ] : {
Original file line number Diff line number Diff line change @@ -186,5 +186,11 @@ error: you should put `mycrate::Collection` between ticks in the documentation
186186LL | /// An iterator over mycrate::Collection's values.
187187 | ^^^^^^^^^^^^^^^^^^^
188188
189- error: aborting due to 31 previous errors
189+ error: you should put `text][path::to::item` between ticks in the documentation
190+ --> $DIR/doc.rs:208:12
191+ |
192+ LL | /// [plain text][path::to::item]
193+ | ^^^^^^^^^^^^^^^^^^^^
194+
195+ error: aborting due to 32 previous errors
190196
You can’t perform that action at this time.
0 commit comments