rust/tests/ui/proc-macro/derive-helper-configured.rs
Urgau 0c3f5cce89 Further cleanup cfgs in the UI test suite
This commit does three things:
 1. replaces (the last remaining) never true cfgs by the FALSE cfg
 2. fix derive-helper-configured.rs (typo in directive)
 3. and comment some current unused #[cfg_attr] (missing revisions)
2024-04-09 23:58:18 +02:00

17 lines
278 B
Rust

// 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() {}