primitive disambiguator tests

This commit is contained in:
max-heller 2021-01-03 20:34:07 -05:00
parent b4a0ef066d
commit e33a205bdf
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,2 @@
#![deny(broken_intra_doc_links)]
//! [struct@str::trim] //~ ERROR incompatible link

View 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()]

View File

@ -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()]