2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2018-04-02 21:34:52 -05:00
|
|
|
#![deny(non_shorthand_field_patterns)]
|
|
|
|
|
|
|
|
pub struct Value<A> { pub value: A }
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! pat {
|
|
|
|
($a:pat) => {
|
|
|
|
Value { value: $a }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let pat!(value) = Value { value: () };
|
|
|
|
}
|