rust/tests/ui/conditional-compilation/cfg-attr-multi-invalid-2.rs
2024-02-16 20:02:50 +00:00

8 lines
176 B
Rust

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