about summary refs log tree commit diff
path: root/tests/ui/cfg/crate-attributes-using-cfg_attr.rs
blob: f99fad881f284303ae9166a1dea853387afd25ad (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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() {}