2020-10-11 19:27:17 -05:00
|
|
|
//@ aux-build:reexport-check.rs
|
2020-09-29 10:04:40 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2020-10-11 19:27:17 -05:00
|
|
|
extern crate reexport_check;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ !has 'foo/index.html' '//code' 'pub use self::i32;'
|
|
|
|
//@ has 'foo/i32/index.html'
|
2020-10-24 18:21:40 -05:00
|
|
|
#[allow(deprecated, deprecated_in_future)]
|
2020-09-29 10:04:40 -05:00
|
|
|
pub use std::i32;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ !has 'foo/index.html' '//code' 'pub use self::string::String;'
|
|
|
|
//@ has 'foo/index.html' '//div[@class="item-name"]' 'String'
|
2020-09-29 10:04:40 -05:00
|
|
|
pub use std::string::String;
|
2020-10-11 19:27:17 -05:00
|
|
|
|
2023-01-31 12:27:09 -06:00
|
|
|
// i32 is deprecated, String is not
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ count 'foo/index.html' '//span[@class="stab deprecated"]' 1
|
2023-01-31 12:27:09 -06:00
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/index.html' '//div[@class="desc docblock-short"]' 'Docs in original'
|
2020-10-11 19:27:17 -05: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;
|