Added a test.
This commit is contained in:
parent
0c736e92a3
commit
41f49aac4e
1 changed files with 21 additions and 0 deletions
21
src/test/rustdoc/issue-83832.rs
Normal file
21
src/test/rustdoc/issue-83832.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
pub mod io {
|
||||
#[deprecated(since = "0.1.8", note = "Use bar() instead")]
|
||||
pub trait Reader {}
|
||||
pub trait Writer {}
|
||||
}
|
||||
|
||||
// @has foo/mod1/index.html
|
||||
pub mod mod1 {
|
||||
// @has - '//code' 'pub use io::Reader;'
|
||||
// @has - '//span' 'Deprecated'
|
||||
pub use io::Reader;
|
||||
}
|
||||
|
||||
// @has foo/mod2/index.html
|
||||
pub mod mod2 {
|
||||
// @has - '//code' 'pub use io::Writer;'
|
||||
// @!has - '//span' 'Deprecated'
|
||||
pub use io::Writer;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue