1
Fork 0

Added a test.

This commit is contained in:
Tor Hovland 2021-04-08 23:03:39 +02:00
parent 0c736e92a3
commit 41f49aac4e

View 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;
}