2019-06-22 12:12:26 +02:00
|
|
|
// Check that `#[cfg_attr($PREDICATE,)]` triggers the `unused_attribute` lint.
|
|
|
|
|
|
|
|
|
|
#![deny(unused)]
|
|
|
|
|
|
2021-07-29 12:00:41 -05:00
|
|
|
#[cfg_attr(FALSE,)] //~ ERROR `#[cfg_attr]` does not expand to any attributes
|
2019-06-22 12:12:26 +02:00
|
|
|
fn _f() {}
|
|
|
|
|
|
2024-04-07 00:43:00 +02:00
|
|
|
#[cfg_attr(not(FALSE),)] //~ ERROR `#[cfg_attr]` does not expand to any attributes
|
2019-06-22 12:12:26 +02:00
|
|
|
fn _g() {}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|