Skip to content

Commit 41f49aa

Browse files
author
Tor Hovland
committed
Added a test.
1 parent 0c736e9 commit 41f49aa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/test/rustdoc/issue-83832.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#![crate_name = "foo"]
2+
3+
pub mod io {
4+
#[deprecated(since = "0.1.8", note = "Use bar() instead")]
5+
pub trait Reader {}
6+
pub trait Writer {}
7+
}
8+
9+
// @has foo/mod1/index.html
10+
pub mod mod1 {
11+
// @has - '//code' 'pub use io::Reader;'
12+
// @has - '//span' 'Deprecated'
13+
pub use io::Reader;
14+
}
15+
16+
// @has foo/mod2/index.html
17+
pub mod mod2 {
18+
// @has - '//code' 'pub use io::Writer;'
19+
// @!has - '//span' 'Deprecated'
20+
pub use io::Writer;
21+
}

0 commit comments

Comments
 (0)