Skip to content

Commit c2221ef

Browse files
Add regression test for glob import ICE in rustdoc JSON
1 parent b7e6200 commit c2221ef

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/test/rustdoc-json/glob_import.rs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// This is a regression test for <https://github.com/rust-lang/rust/issues/98003>.
2+
3+
#![feature(no_core)]
4+
#![no_std]
5+
#![no_core]
6+
7+
// @has glob_import.json
8+
// @has - "$.index[*][?(@.name=='glob')]"
9+
// @has - "$.index[*][?(@.kind=='import')].inner.name" \"*\"
10+
11+
12+
mod m1 {
13+
pub fn f() {}
14+
}
15+
mod m2 {
16+
pub fn f(_: u8) {}
17+
}
18+
19+
pub use m1::*;
20+
pub use m2::*;
21+
22+
pub mod glob {
23+
pub use *;
24+
}

0 commit comments

Comments
 (0)