2 // compile-flags:--cfg foo
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