Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
proc-macro
/
struct-field-macro.rs
blob: 9b1ddcaf27458785073a5b791c0d884519f437ad [
file
] [
log
] [
blame
]
//@ 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
!(),
}
fn
main
()
{}