Rollup merge of #59835 - lzutao:nonzero-signed, r=Mark-Simulacrum
Re-export NonZero signed variant in std Closes #59834 .
This commit is contained in:
commit
449697b7ff
@ -13,6 +13,8 @@ pub use core::num::Wrapping;
|
||||
|
||||
#[stable(feature = "nonzero", since = "1.28.0")]
|
||||
pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize};
|
||||
#[stable(feature = "signed_nonzero", since = "1.34.0")]
|
||||
pub use core::num::{NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize};
|
||||
|
||||
#[cfg(test)] use crate::fmt;
|
||||
#[cfg(test)] use crate::ops::{Add, Sub, Mul, Div, Rem};
|
||||
|
@ -6,9 +6,9 @@ LL | Err("")?;
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as std::convert::From<bool>>
|
||||
<i32 as std::convert::From<core::num::NonZeroI32>>
|
||||
<i32 as std::convert::From<i16>>
|
||||
<i32 as std::convert::From<i8>>
|
||||
<i32 as std::convert::From<std::num::NonZeroI32>>
|
||||
and 2 others
|
||||
= note: required by `std::convert::From::from`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user