bounded-integer 0.6.1

Bounded integers
Documentation
error[E0080]: evaluation panicked: used `zero` on a type whose range does not include zero
  --> ui/not_zeroable.rs:4:1
   |
 4 | / bounded_integer::unsafe_api! {
 5 | |     for A,
 6 | |     unsafe repr: u8,
 7 | |     min: 1,
 8 | |     max: 1,
 9 | |     zero,
10 | | }
   | |_^ evaluation of `_::<impl std::default::Default for A>::default::{constant#0}` failed here
   |
   = note: this error originates in the macro `$crate::__unsafe_api_internal` which comes from the expansion of the macro `bounded_integer::unsafe_api` (in Nightly builds, run with -Z macro-backtrace for more info)

note: erroneous constant encountered
  --> ui/not_zeroable.rs:4:1
   |
 4 | / bounded_integer::unsafe_api! {
 5 | |     for A,
 6 | |     unsafe repr: u8,
 7 | |     min: 1,
 8 | |     max: 1,
 9 | |     zero,
10 | | }
   | |_^
   |
   = note: this note originates in the macro `$crate::__unsafe_api_internal` which comes from the expansion of the macro `bounded_integer::unsafe_api` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0080]: evaluation panicked: used `one` on a type whose range does not include one
  --> ui/not_zeroable.rs:15:1
   |
15 | / bounded_integer::unsafe_api! {
16 | |     for B,
17 | |     unsafe repr: u8,
18 | |     min: 0,
19 | |     max: 0,
20 | |     one,
21 | | }
   | |_^ evaluation of `_::<impl B>::one::{constant#0}` failed here
   |
   = note: this error originates in the macro `$crate::__unsafe_api_internal` which comes from the expansion of the macro `bounded_integer::unsafe_api` (in Nightly builds, run with -Z macro-backtrace for more info)

note: erroneous constant encountered
  --> ui/not_zeroable.rs:15:1
   |
15 | / bounded_integer::unsafe_api! {
16 | |     for B,
17 | |     unsafe repr: u8,
18 | |     min: 0,
19 | |     max: 0,
20 | |     one,
21 | | }
   | |_^
   |
   = note: this note originates in the macro `$crate::__unsafe_api_internal` which comes from the expansion of the macro `bounded_integer::unsafe_api` (in Nightly builds, run with -Z macro-backtrace for more info)