Skip to content

Commit

Permalink
Add regression test for #7758
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Oct 6, 2021
1 parent b9d753e commit 80408ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/ui/doc/doc.rs
Expand Up @@ -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()]: {
Expand Down
8 changes: 7 additions & 1 deletion tests/ui/doc/doc.stderr
Expand Up @@ -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

0 comments on commit 80408ef

Please sign in to comment.