]> git.lizzy.rs Git - rust.git/blob - src/test/ui/check-cfg/compact-names.rs
Rollup merge of #105674 - estebank:iterator-chains, r=oli-obk
[rust.git] / src / test / ui / check-cfg / compact-names.rs
1 // This test check that we correctly emit an warning for compact cfg
2 //
3 // check-pass
4 // compile-flags:--check-cfg=names() -Z unstable-options
5
6 #![feature(cfg_target_compact)]
7
8 #[cfg(target(os = "linux", arch = "arm"))]
9 pub fn expected() {}
10
11 #[cfg(target(os = "linux", architecture = "arm"))]
12 //~^ WARNING unexpected `cfg` condition name
13 pub fn unexpected() {}
14
15 fn main() {}