mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 15:45:16 +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;
|