blob: cfb94cd9de5307dab5554043458ac20d1af4c9a5 [file] [log] [blame]
use crate::fmt::{Debug, Formatter, Result};
macro_rules! floating {
($ty:ident) => {
#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for $ty {
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
panic!("floating point support is turned off");
}
}
};
}
floating! { f32 }
floating! { f64 }