error: The start of the range must be before the end
--> src/main.rs:10:23
|
10 | pub struct Test { 0..1 }
| ^^^^
Perhaps it is not a common use case but creating a bounded integer that is bound to a single value should be plausible? Based on the error message I suspect this is an off by one error in the range validation logic. New to rust, especially macros, but I'll take a look and see if I can make a PR.
This raises the following error.
Perhaps it is not a common use case but creating a bounded integer that is bound to a single value should be plausible? Based on the error message I suspect this is an off by one error in the range validation logic. New to rust, especially macros, but I'll take a look and see if I can make a PR.