2021-04-01 04:34:39 -05:00
|
|
|
// check-fail
|
|
|
|
// compile-flags:--cfg foo
|
|
|
|
|
|
|
|
#![cfg_attr(foo, crate_type="bin")]
|
|
|
|
//~^ERROR `crate_type` within
|
|
|
|
//~| WARN this was previously accepted
|
2022-01-23 16:05:48 -06:00
|
|
|
//~|ERROR `crate_type` within
|
|
|
|
//~| WARN this was previously accepted
|
2021-04-01 04:34:39 -05:00
|
|
|
#![cfg_attr(foo, crate_name="bar")]
|
|
|
|
//~^ERROR `crate_name` within
|
|
|
|
//~| WARN this was previously accepted
|
2022-01-23 16:05:48 -06:00
|
|
|
//~|ERROR `crate_name` within
|
|
|
|
//~| WARN this was previously accepted
|
2021-04-01 04:34:39 -05:00
|
|
|
|
|
|
|
fn main() {}
|