2020-01-26 21:28:09 +00:00
|
|
|
//@ aux-build: primitive-reexport.rs
|
|
|
|
//@ compile-flags:--extern foo --edition 2018
|
|
|
|
|
|
|
|
#![crate_name = "bar"]
|
|
|
|
|
|
|
|
// @has bar/p/index.html
|
|
|
|
// @has - '//code' 'pub use bool;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.bool.html"]' 'bool'
|
2020-01-26 21:28:09 +00:00
|
|
|
// @has - '//code' 'pub use char as my_char;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.char.html"]' 'char'
|
2020-01-26 21:28:09 +00:00
|
|
|
pub mod p {
|
|
|
|
pub use foo::bar::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has bar/baz/index.html
|
|
|
|
// @has - '//code' 'pub use bool;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.bool.html"]' 'bool'
|
2020-01-26 21:28:09 +00:00
|
|
|
// @has - '//code' 'pub use char as my_char;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.char.html"]' 'char'
|
2020-01-26 21:28:09 +00:00
|
|
|
pub use foo::bar as baz;
|
|
|
|
|
|
|
|
// @has bar/index.html
|
|
|
|
// @has - '//code' 'pub use str;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.str.html"]' 'str'
|
2020-01-26 21:28:09 +00:00
|
|
|
// @has - '//code' 'pub use i32 as my_i32;'
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//code/a[@href="{{channel}}/std/primitive.i32.html"]' 'i32'
|
2020-01-26 21:28:09 +00:00
|
|
|
pub use str;
|
|
|
|
pub use i32 as my_i32;
|