]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/reexport-check.rs
Rollup merge of #107499 - compiler-errors:deduce_sig_from_projection-generator-tweak...
[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/i32/index.html'
8 #[allow(deprecated, deprecated_in_future)]
9 pub use std::i32;
10 // @!has 'foo/index.html' '//code' 'pub use self::string::String;'
11 // @has 'foo/index.html' '//div[@class="item-left"]' 'String'
12 pub use std::string::String;
13
14 // i32 is deprecated, String is not
15 // @count 'foo/index.html' '//span[@class="stab deprecated"]' 1
16
17 // @has 'foo/index.html' '//div[@class="item-right docblock-short"]' 'Docs in original'
18 // this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment
19 #[doc(inline)]
20 pub use reexport_check::S;