blob: 1f23dadc4322659906d35c7b80dbb61f3d1e7c95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// check-fail
// compile-flags:--cfg foo
#![cfg_attr(foo, crate_type="bin")]
//~^ERROR `crate_type` within
//~| WARN this was previously accepted
//~|ERROR `crate_type` within
//~| WARN this was previously accepted
#![cfg_attr(foo, crate_name="bar")]
//~^ERROR `crate_name` within
//~| WARN this was previously accepted
//~|ERROR `crate_name` within
//~| WARN this was previously accepted
fn main() {}
|