rust/tests/ui/proc-macro/derive-helper-vs-legacy.rs

13 lines
218 B
Rust

//@ check-pass
//@ aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
#[derive(Empty)]
#[empty_helper] // OK, this is both derive helper and legacy derive helper
#[derive(Empty)]
struct S;
fn main() {}