rust/src/test/run-pass/proc-macro/struct-field-macro.rs

17 lines
197 B
Rust
Raw Normal View History

#![allow(dead_code)]
// aux-build:derive-nothing.rs
#[macro_use]
extern crate derive_nothing;
macro_rules! int {
() => { i32 }
}
#[derive(Nothing)]
struct S {
x: int!(),
}
2016-12-31 01:25:59 -06:00
fn main() {}