()
| 208 | } |
| 209 | |
| 210 | fn has_lower_upper_exp_for_non_zero() -> bool { |
| 211 | // LowerExp/UpperExp for NonZero* were added in Rust 1.84. |
| 212 | // <https://doc.rust-lang.org/stable/std/fmt/trait.LowerExp.html#impl-LowerExp-for-NonZero%3CT%3E> |
| 213 | can_compile("fn a(x: &core::num::NonZeroI32, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { core::fmt::LowerExp::fmt(x, f) }") |
| 214 | } |
| 215 | |
| 216 | fn use_feature_or_nothing(feature: &str) { |
| 217 | if has_feature(feature) { |