mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
19 lines
334 B
Rust
19 lines
334 B
Rust
// Derive helpers are resolved successfully inside `cfg_attr`.
|
|
|
|
// check-pass
|
|
// compile-flats:--cfg TRUE
|
|
// aux-build:test-macros.rs
|
|
|
|
#[macro_use]
|
|
extern crate test_macros;
|
|
|
|
#[cfg_attr(TRUE, empty_helper)]
|
|
#[derive(Empty)]
|
|
#[cfg_attr(TRUE, empty_helper)]
|
|
struct S {
|
|
#[cfg_attr(TRUE, empty_helper)]
|
|
field: u8,
|
|
}
|
|
|
|
fn main() {}
|