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
|
|
|
|
}
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/prelude/index.html
|
2015-01-27 17:26:52 +00:00
|
|
|
pub mod prelude {
|
2024-06-21 12:03:08 +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};
|
2024-06-21 12:03:08 +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};
|
|
|
|
}
|