mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
primitive disambiguator tests
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#![deny(broken_intra_doc_links)]
|
||||
//! [struct@str::trim] //~ ERROR incompatible link
|
||||
@@ -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()]
|
||||
Reference in New Issue
Block a user