mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 05:00:17 +00:00
12 lines
271 B
Rust
12 lines
271 B
Rust
//@ check-fail
|
|
//@ compile-flags:--cfg foo --check-cfg=cfg(foo)
|
|
|
|
#![cfg_attr(foo, crate_type="bin")]
|
|
//~^ERROR `crate_type` within
|
|
//~|ERROR `crate_type` within
|
|
#![cfg_attr(foo, crate_name="bar")]
|
|
//~^ERROR `crate_name` within
|
|
//~|ERROR `crate_name` within
|
|
|
|
fn main() {}
|