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