2015-04-06 20:49:30 +00:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2015-01-27 17:26:52 +00:00
|
|
|
pub mod io {
|
2015-02-12 15:29:52 +00:00
|
|
|
pub trait Reader { fn dummy(&self) { } }
|
2015-01-27 17:26:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub enum Maybe<A> {
|
|
|
|
Just(A),
|
|
|
|
Nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has foo/prelude/index.html
|
|
|
|
pub mod prelude {
|
2016-11-24 04:11:31 +00:00
|
|
|
// @has foo/prelude/index.html '//code' 'pub use io;'
|
|
|
|
// @has foo/prelude/index.html '//code' 'pub use io::Reader;'
|
2015-01-27 17:26:52 +00:00
|
|
|
#[doc(no_inline)] pub use io::{self, Reader};
|
2016-11-24 04:11:31 +00:00
|
|
|
// @has foo/prelude/index.html '//code' 'pub use Maybe;'
|
|
|
|
// @has foo/prelude/index.html '//code' 'pub use Maybe::Just;'
|
|
|
|
// @has foo/prelude/index.html '//code' 'pub use Maybe::Nothing;'
|
2015-01-27 17:26:52 +00:00
|
|
|
#[doc(no_inline)] pub use Maybe::{self, Just, Nothing};
|
|
|
|
}
|