2020-10-12 08:27:17 +08:00
|
|
|
// aux-build:reexport-check.rs
|
2020-09-29 23:04:40 +08:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2020-10-12 08:27:17 +08:00
|
|
|
extern crate reexport_check;
|
|
|
|
|
2020-09-29 23:04:40 +08:00
|
|
|
// @!has 'foo/index.html' '//code' 'pub use self::i32;'
|
2023-01-27 03:50:14 +08:00
|
|
|
// @has 'foo/index.html' '//div[@class="item-left deprecated"]' 'i32'
|
2020-09-29 23:04:40 +08:00
|
|
|
// @has 'foo/i32/index.html'
|
2020-10-25 07:21:40 +08:00
|
|
|
#[allow(deprecated, deprecated_in_future)]
|
2020-09-29 23:04:40 +08:00
|
|
|
pub use std::i32;
|
|
|
|
// @!has 'foo/index.html' '//code' 'pub use self::string::String;'
|
2023-01-27 03:50:14 +08:00
|
|
|
// @has 'foo/index.html' '//div[@class="item-left"]' 'String'
|
2020-09-29 23:04:40 +08:00
|
|
|
pub use std::string::String;
|
2020-10-12 08:27:17 +08:00
|
|
|
|
2021-06-18 06:33:42 +08:00
|
|
|
// @has 'foo/index.html' '//div[@class="item-right docblock-short"]' 'Docs in original'
|
2020-10-12 08:27:17 +08:00
|
|
|
// this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment
|
|
|
|
#[doc(inline)]
|
|
|
|
pub use reexport_check::S;
|