]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[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() {}