mirror of https://github.com/rust-lang/rust
15 lines
409 B
Rust
15 lines
409 B
Rust
//! Helper module for exporting the `pattern_type` macro
|
|
|
|
/// Creates a pattern type.
|
|
/// ```ignore (cannot test this from within core yet)
|
|
/// type Positive = std::pat::pattern_type!(i32 is 1..);
|
|
/// ```
|
|
#[macro_export]
|
|
#[rustc_builtin_macro(pattern_type)]
|
|
#[unstable(feature = "core_pattern_type", issue = "none")]
|
|
macro_rules! pattern_type {
|
|
($($arg:tt)*) => {
|
|
/* compiler built-in */
|
|
};
|
|
}
|