]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg-attr-multi-false.rs
MetadataOnlyCodegenBackend: remove `is_inline` call
[rust.git] / src / test / ui / conditional-compilation / cfg-attr-multi-false.rs
1 // Test that cfg_attr doesn't emit any attributes when the
2 // configuration variable is false. This mirrors `cfg-attr-multi-true.rs`
3
4 // compile-pass
5
6 #![warn(unused_must_use)]
7 #![feature(cfg_attr_multi)]
8
9 #[cfg_attr(any(), deprecated, must_use)]
10 struct Struct {}
11
12 impl Struct {
13     fn new() -> Struct {
14         Struct {}
15     }
16 }
17
18 fn main() {
19     Struct::new();
20 }