File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 11error[E0080]: evaluation panicked: used `zero` on a type whose range does not include zero
22 --> ui/not_zeroable.rs:4:1
33 |
4- 4 | / bounded_integer::unsafe_api! {
5- 5 | | for A,
6- 6 | | unsafe repr: u8,
7- 7 | | min: 1,
8- 8 | | max: 1,
9- 9 | | zero,
4+ 4 | / bounded_integer::unsafe_api! {
5+ 5 | | for A,
6+ 6 | | unsafe repr: u8,
7+ 7 | | min: 1,
8+ 8 | | max: 1,
9+ 9 | | zero,
101010 | | }
1111 | |_^ evaluation of `_::<impl std::default::Default for A>::default::{constant#0}` failed here
1212 |
@@ -15,12 +15,12 @@ error[E0080]: evaluation panicked: used `zero` on a type whose range does not in
1515note: erroneous constant encountered
1616 --> ui/not_zeroable.rs:4:1
1717 |
18- 4 | / bounded_integer::unsafe_api! {
19- 5 | | for A,
20- 6 | | unsafe repr: u8,
21- 7 | | min: 1,
22- 8 | | max: 1,
23- 9 | | zero,
18+ 4 | / bounded_integer::unsafe_api! {
19+ 5 | | for A,
20+ 6 | | unsafe repr: u8,
21+ 7 | | min: 1,
22+ 8 | | max: 1,
23+ 9 | | zero,
242410 | | }
2525 | |_^
2626 |
You can’t perform that action at this time.
0 commit comments