blob: b323bc6bef2abf05af6ec68f9b5e47e662af6a77 [file]
// Test that cfg_attr doesn't emit any attributes when the
// configuration variable is false. This mirrors `cfg-attr-multi-true.rs`
//@ check-pass
#![warn(unused_must_use)]
#[cfg_attr(false, deprecated, must_use)]
struct Struct {}
impl Struct {
fn new() -> Struct {
Struct {}
}
}
fn main() {
Struct::new();
}