2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2019-07-27 00:54:25 +03:00
|
|
|
|
2018-09-17 11:18:35 +02:00
|
|
|
#![allow(dead_code)]
|
2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: derive-nothing.rs
|
2016-12-31 16:02:06 +10:30
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate derive_nothing;
|
|
|
|
|
|
|
|
macro_rules! int {
|
|
|
|
() => { i32 }
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Nothing)]
|
|
|
|
struct S {
|
|
|
|
x: int!(),
|
|
|
|
}
|
|
|
|
|
2016-12-31 17:55:59 +10:30
|
|
|
fn main() {}
|