mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
21 lines
309 B
Rust
21 lines
309 B
Rust
pub struct Option;
|
|
impl Option {
|
|
pub fn unwrap(self) {}
|
|
}
|
|
|
|
mod macros {
|
|
use crate::Option;
|
|
/// [`Option::unwrap`]
|
|
#[macro_export]
|
|
macro_rules! print {
|
|
() => ()
|
|
}
|
|
}
|
|
|
|
mod structs {
|
|
use crate::Option;
|
|
/// [`Option::unwrap`]
|
|
pub struct Print;
|
|
}
|
|
pub use structs::Print;
|