mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
427 B
Rust
15 lines
427 B
Rust
//@ check-fail
|
|
//@ compile-flags:--cfg foo --check-cfg=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() {}
|