1
Fork 0
rust/tests/ui/proc-macro/derive-helper-configured.rs

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

17 lines
278 B
Rust
Raw Normal View History

// Derive helpers are resolved successfully inside `cfg_attr`.
//@ check-pass
//@ aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
#[derive(Empty)]
#[cfg_attr(all(), empty_helper)]
struct S {
#[cfg_attr(all(), empty_helper)]
field: u8,
}
fn main() {}