Add regression test for #7758
This commit is contained in:
parent
b9d753e4f5
commit
80408ef8dc
@ -203,6 +203,11 @@ fn issue_2343() {}
|
|||||||
/// __|_ _|__||_|
|
/// __|_ _|__||_|
|
||||||
fn pulldown_cmark_crash() {}
|
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
|
// issue #7033 - generic_const_exprs ICE
|
||||||
struct S<T, const N: usize>
|
struct S<T, const N: usize>
|
||||||
where [(); N.checked_next_power_of_two().unwrap()]: {
|
where [(); N.checked_next_power_of_two().unwrap()]: {
|
||||||
|
@ -186,5 +186,11 @@ error: you should put `mycrate::Collection` between ticks in the documentation
|
|||||||
LL | /// An iterator over mycrate::Collection's values.
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user