Skip to content

Commit 6f04133

Browse files
committed
fix incompatible disambiguator test
1 parent 06b0900 commit 6f04133

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![deny(broken_intra_doc_links)]
2+
//! [static@u8::MIN]
3+
//~^ ERROR incompatible link kind
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error: incompatible link kind for `u8::MIN`
2+
--> $DIR/incompatible-primitive-disambiguator.rs:2:6
3+
|
4+
LL | //! [static@u8::MIN]
5+
| ^^^^^^^^^^^^^^ help: to link to the associated constant, prefix with `const@`: `const@u8::MIN`
6+
|
7+
note: the lint level is defined here
8+
--> $DIR/incompatible-primitive-disambiguator.rs:1:9
9+
|
10+
LL | #![deny(broken_intra_doc_links)]
11+
| ^^^^^^^^^^^^^^^^^^^^^^
12+
= note: this link resolved to an associated constant, which is not a static
13+
14+
error: aborting due to previous error
15+

src/test/rustdoc/intra-doc/incompatible-primitive-disambiguator.rs

-2
This file was deleted.

0 commit comments

Comments
 (0)