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

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

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
}