]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/reexport-check.rs
Rollup merge of #76858 - rcvalle:rust-lang-exploit-mitigations, r=steveklabnik
[rust.git] / src / test / 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' '//tr[@class="module-item"]' 'i32'
8 // @has 'foo/i32/index.html'
9 pub use std::i32;
10 // @!has 'foo/index.html' '//code' 'pub use self::string::String;'
11 // @has 'foo/index.html' '//tr[@class="module-item"]' 'String'
12 pub use std::string::String;
13
14 // @has 'foo/index.html' '//td[@class="docblock-short"]' 'Docs in original'
15 // this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment
16 #[doc(inline)]
17 pub use reexport_check::S;