X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Frustdoc%2Freexport-check.rs;h=94fa03385322adad68321606eb5eef43814cbd0a;hb=8ddbfadda0cd0b2cde11bd60d1e3785657841fc0;hp=acac0c9919716b067e8b4a7ffdc30e51beebdeba;hpb=4e5cfabd08aa906248aedea3ac61c0eb2a7cc727;p=rust.git diff --git a/tests/rustdoc/reexport-check.rs b/tests/rustdoc/reexport-check.rs index acac0c99197..94fa0338532 100644 --- a/tests/rustdoc/reexport-check.rs +++ b/tests/rustdoc/reexport-check.rs @@ -4,7 +4,6 @@ extern crate reexport_check; // @!has 'foo/index.html' '//code' 'pub use self::i32;' -// @has 'foo/index.html' '//div[@class="item-left deprecated"]' 'i32' // @has 'foo/i32/index.html' #[allow(deprecated, deprecated_in_future)] pub use std::i32; @@ -12,6 +11,9 @@ // @has 'foo/index.html' '//div[@class="item-left"]' 'String' pub use std::string::String; +// i32 is deprecated, String is not +// @count 'foo/index.html' '//span[@class="stab deprecated"]' 1 + // @has 'foo/index.html' '//div[@class="item-right docblock-short"]' 'Docs in original' // this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment #[doc(inline)]