nonzero_ext 0.2.0

Extensions and additional traits for non-zero integer types
Documentation
1
2
3
4
5
6
7
error[E0080]: evaluation of constant value failed
 --> $DIR/zero_usize.rs:8:28
  |
8 |     let _a: NonZeroUsize = nonzero!(0usize);
  |                            ^^^^^^^^^^^^^^^^ attempt to subtract with overflow
  |
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)