nonzero_ext 0.3.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 compute `0_usize - 1_usize`, which would overflow
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)