]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs
Rollup merge of #97786 - ferrocene:pa-fix-simulate-remap-prefix, r=Mark-Simulacrum
[rust.git] / src / test / ui / cfg / future-compat-crate-attributes-using-cfg_attr.rs
1 // check-fail
2 // compile-flags:--cfg foo
3
4 #![deny(warnings)]
5 #![cfg_attr(foo, crate_type="bin")]
6 //~^ERROR `crate_type` within
7 //~| WARN this was previously accepted
8 //~|ERROR `crate_type` within
9 //~| WARN this was previously accepted
10 #![cfg_attr(foo, crate_name="bar")]
11 //~^ERROR `crate_name` within
12 //~| WARN this was previously accepted
13 //~|ERROR `crate_name` within
14 //~| WARN this was previously accepted
15
16 fn main() {}