rust/tests/ui/cfg/cfg_false_no_std.rs
Vadim Petrochenkov 46becfdf9c expand: Change how #![cfg(FALSE)] behaves on crate root
Previously it removed all other attributes from the crate root.
Now it removes only attributes below itself.

So it becomes possible to configure some global crate properties even for fully unconfigured crates.
2023-06-10 00:35:21 +03:00

11 lines
188 B
Rust

// No error, panic handler is supplied by libstd linked though the empty library.
// check-pass
// aux-build: cfg_false_lib.rs
#![no_std]
extern crate cfg_false_lib as _;
fn main() {}