rust/tests/ui/conditional-compilation/cfg-attr-crate-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
239 B
Rust
Raw Normal View History

// https://github.com/rust-lang/rust/issues/21833#issuecomment-72353044
// compile-flags: --cfg broken
#![crate_type = "lib"]
#![cfg_attr(broken, no_core)] //~ ERROR the `#[no_core]` attribute is an experimental feature
pub struct S {}