diff --git a/src/macros.rs b/src/macros.rs index 1c0fbf9b3675..edc391e079be 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -199,7 +199,7 @@ macro_rules! e { // cfg completely. // FIXME(ctest): ctest can't handle `$(,)?` so we use `$(,)*` which isn't quite correct. cfg_if! { - if #[cfg(any())] { + if #[cfg(all())] { // if #[cfg(feature = "const-extern-fn")] { /// Define an `unsafe` function that is const as long as `const-extern-fn` is enabled. macro_rules! f {