Add regression test for #7758

This commit is contained in:
Manish Goregaokar 2021-10-05 23:48:41 -07:00
parent b9d753e4f5
commit 80408ef8dc
2 changed files with 12 additions and 1 deletions

View File

@ -203,6 +203,11 @@ fn issue_2343() {}
/// __|_ _|__||_|
fn pulldown_cmark_crash() {}
/// This should not lint
/// (regression test for #7758)
/// [plain text][path::to::item]
fn intra_doc_link() {}
// issue #7033 - generic_const_exprs ICE
struct S<T, const N: usize>
where [(); N.checked_next_power_of_two().unwrap()]: {

View File

@ -186,5 +186,11 @@ error: you should put `mycrate::Collection` between ticks in the documentation
LL | /// An iterator over mycrate::Collection's values.
| ^^^^^^^^^^^^^^^^^^^
error: aborting due to 31 previous errors
error: you should put `text][path::to::item` between ticks in the documentation
--> $DIR/doc.rs:208:12
|
LL | /// [plain text][path::to::item]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 32 previous errors