primitive disambiguator tests
This commit is contained in:
parent
b4a0ef066d
commit
e33a205bdf
@ -0,0 +1,2 @@
|
|||||||
|
#![deny(broken_intra_doc_links)]
|
||||||
|
//! [struct@str::trim] //~ ERROR incompatible link
|
4
src/test/rustdoc/intra-doc/primitive-disambiguators.rs
Normal file
4
src/test/rustdoc/intra-doc/primitive-disambiguators.rs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#![deny(broken_intra_doc_links)]
|
||||||
|
// @has primitive_disambiguators/index.html
|
||||||
|
// @has - '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim'
|
||||||
|
//! [str::trim()]
|
@ -1,4 +0,0 @@
|
|||||||
#![deny(broken_intra_doc_links)]
|
|
||||||
// Should link to https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim
|
|
||||||
// and not suggest prefixing with `prim@`
|
|
||||||
//! [str::trim()]
|
|
Loading…
Reference in New Issue
Block a user