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