2018-09-10 17:06:49 -05:00
|
|
|
// Test that cfg_attr doesn't emit any attributes when the
|
2018-10-22 11:21:55 -05:00
|
|
|
// configuration variable is false. This mirrors `cfg-attr-multi-true.rs`
|
2018-09-10 17:06:49 -05:00
|
|
|
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-09-10 17:06:49 -05:00
|
|
|
|
|
|
|
#![warn(unused_must_use)]
|
|
|
|
|
|
|
|
#[cfg_attr(any(), deprecated, must_use)]
|
|
|
|
struct Struct {}
|
|
|
|
|
|
|
|
impl Struct {
|
|
|
|
fn new() -> Struct {
|
|
|
|
Struct {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Struct::new();
|
|
|
|
}
|