]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg-attr-crate-2.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / conditional-compilation / cfg-attr-crate-2.rs
1 // https://github.com/rust-lang/rust/issues/21833#issuecomment-72353044
2
3 // compile-flags: --cfg broken
4
5 #![crate_type = "lib"]
6 #![cfg_attr(broken, no_core)] //~ ERROR the `#[no_core]` attribute is an experimental feature
7
8 pub struct S {}