Add regression test for glob import ICE in rustdoc JSON
This commit is contained in:
parent
b7e62000dd
commit
c2221eff62
1 changed files with 24 additions and 0 deletions
24
src/test/rustdoc-json/glob_import.rs
Normal file
24
src/test/rustdoc-json/glob_import.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
// This is a regression test for <https://github.com/rust-lang/rust/issues/98003>.
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_std]
|
||||
#![no_core]
|
||||
|
||||
// @has glob_import.json
|
||||
// @has - "$.index[*][?(@.name=='glob')]"
|
||||
// @has - "$.index[*][?(@.kind=='import')].inner.name" \"*\"
|
||||
|
||||
|
||||
mod m1 {
|
||||
pub fn f() {}
|
||||
}
|
||||
mod m2 {
|
||||
pub fn f(_: u8) {}
|
||||
}
|
||||
|
||||
pub use m1::*;
|
||||
pub use m2::*;
|
||||
|
||||
pub mod glob {
|
||||
pub use *;
|
||||
}
|
Loading…
Add table
Reference in a new issue