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 {} 9