mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +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;
|