rust/tests/ui/feature-gates/feature-gate-cfg_ub_checks.rs

6 lines
130 B
Rust
Raw Normal View History

#![crate_type = "lib"]
pub fn ub_checks_are_enabled() -> bool {
cfg!(ub_checks) //~ ERROR `cfg(ub_checks)` is experimental
}