]> git.lizzy.rs Git - rust.git/blob - tests/ui/conditional-compilation/cfg-attr-crate-2.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / 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 {}