rust/tests/ui/proc-macro/struct-field-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
214 B
Rust
Raw Permalink Normal View History

//@ run-pass
#![allow(dead_code)]
//@ proc-macro: derive-nothing.rs
#[macro_use]
extern crate derive_nothing;
macro_rules! int {
() => { i32 }
}
#[derive(Nothing)]
struct S {
x: int!(),
}
2016-12-31 07:25:59 +00:00
fn main() {}