]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/viewpath-self.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / rustdoc / viewpath-self.rs
1 #![crate_name = "foo"]
2
3 pub mod io {
4     pub trait Reader { fn dummy(&self) { } }
5 }
6
7 pub enum Maybe<A> {
8     Just(A),
9     Nothing
10 }
11
12 // @has foo/prelude/index.html
13 pub mod prelude {
14     // @has foo/prelude/index.html '//code' 'pub use io;'
15     // @has foo/prelude/index.html '//code' 'pub use io::Reader;'
16     #[doc(no_inline)] pub use io::{self, Reader};
17     // @has foo/prelude/index.html '//code' 'pub use Maybe;'
18     // @has foo/prelude/index.html '//code' 'pub use Maybe::Just;'
19     // @has foo/prelude/index.html '//code' 'pub use Maybe::Nothing;'
20     #[doc(no_inline)] pub use Maybe::{self, Just, Nothing};
21 }