]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/reexport-check.rs
Rollup merge of #107316 - ChrisDenton:snap, r=oli-obk
[rust.git] / tests / rustdoc / reexport-check.rs
1 // aux-build:reexport-check.rs
2 #![crate_name = "foo"]
3
4 extern crate reexport_check;
5
6 // @!has 'foo/index.html' '//code' 'pub use self::i32;'
7 // @has 'foo/index.html' '//div[@class="item-left deprecated"]' 'i32'
8 // @has 'foo/i32/index.html'
9 #[allow(deprecated, deprecated_in_future)]
10 pub use std::i32;
11 // @!has 'foo/index.html' '//code' 'pub use self::string::String;'
12 // @has 'foo/index.html' '//div[@class="item-left"]' 'String'
13 pub use std::string::String;
14
15 // @has 'foo/index.html' '//div[@class="item-right docblock-short"]' 'Docs in original'
16 // this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment
17 #[doc(inline)]
18 pub use reexport_check::S;