File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ crate_type = "lib" ]
2+
3+ #![ doc( extern_html_root_url) ]
4+ //~^ ERROR
5+ #![ doc( extern_html_root_url = "a" ) ]
6+ //~^ ERROR
7+ #![ doc( extern_html_root_url( a) ) ]
8+ //~^ ERROR
9+ #![ doc( extern_html_root_url( a( ) ) ) ]
10+ //~^ ERROR
11+ #![ doc( extern_html_root_url( a = 1 ) ) ]
12+ //~^ ERROR
13+ #![ doc( extern_html_root_url( a = "" ) ) ]
14+ //~^ ERROR
15+ #![ doc( extern_html_root_url( a = "1" ) ) ] // This one is supposed to work.
16+ #![ doc( extern_html_root_url( b = "2" , c = "3" ) ) ] // This one is supposed to work.
17+
18+ pub fn foo ( ) { }
Original file line number Diff line number Diff line change 1+ error: extern_html_root_url only accepts this form: `extern_html_root_url(crate = "url")`
2+ --> $DIR/extern_html_root_url.rs:3:8
3+ |
4+ LL | #![doc(extern_html_root_url)]
5+ | ^^^^^^^^^^^^^^^^^^^^
6+
7+ error: extern_html_root_url only accepts this form: `extern_html_root_url(crate = "url")`
8+ --> $DIR/extern_html_root_url.rs:5:8
9+ |
10+ LL | #![doc(extern_html_root_url = "a")]
11+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
13+ error: extern_html_root_url() only accepts `crate_name = "url"`
14+ --> $DIR/extern_html_root_url.rs:7:29
15+ |
16+ LL | #![doc(extern_html_root_url(a))]
17+ | ^
18+
19+ error: extern_html_root_url() only accepts `crate_name = "url"`
20+ --> $DIR/extern_html_root_url.rs:9:29
21+ |
22+ LL | #![doc(extern_html_root_url(a()))]
23+ | ^^^
24+
25+ error: extern_html_root_url() only accepts `crate_name = "url"`
26+ --> $DIR/extern_html_root_url.rs:11:29
27+ |
28+ LL | #![doc(extern_html_root_url(a = 1))]
29+ | ^^^^^
30+
31+ error: URL cannot be empty
32+ --> $DIR/extern_html_root_url.rs:13:29
33+ |
34+ LL | #![doc(extern_html_root_url(a = ""))]
35+ | ^^^^^^
36+
37+ error: aborting due to 6 previous errors
38+
Original file line number Diff line number Diff line change 1+ #![ crate_name = "foo" ]
2+ #![ doc( extern_html_root_url( std = "https://doc.rust-lang.org/nightly" ) ) ]
3+
4+ // @has 'foo/index.html'
5+ // @has - '//a[@class="mod"]/@href' 'https://doc.rust-lang.org/nightly/std/index.html'
6+ pub use std as other;
You can’t perform that action at this time.
0 commit comments