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