rust/tests/ui/conditional-compilation/cfg-attr-multi-invalid-1.rs

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

8 lines
175 B
Rust
Raw Normal View History

// compile-flags: --cfg broken
#![crate_type = "lib"]
#![cfg_attr(broken, no_core, no_std)]
//~^ ERROR the `#[no_core]` attribute is an experimental feature
pub struct S {}