fix incompatible disambiguator test

This commit is contained in:
max-heller 2021-01-04 15:38:30 -05:00
parent 06b0900a2d
commit 6f0413316f
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#![deny(broken_intra_doc_links)]
//! [static@u8::MIN]
//~^ ERROR incompatible link kind

View File

@ -0,0 +1,15 @@
error: incompatible link kind for `u8::MIN`
--> $DIR/incompatible-primitive-disambiguator.rs:2:6
|
LL | //! [static@u8::MIN]
| ^^^^^^^^^^^^^^ help: to link to the associated constant, prefix with `const@`: `const@u8::MIN`
|
note: the lint level is defined here
--> $DIR/incompatible-primitive-disambiguator.rs:1:9
|
LL | #![deny(broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^
= note: this link resolved to an associated constant, which is not a static
error: aborting due to previous error

View File

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