Closed aarkegz closed 2 months ago
A unit struct with Enumerable derived now enumerate 0 values.
Enumerable
#[derive(Enumerable, Copy, Clone)] struct A; fn main() { let all: Vec<_> = A::enumerator().collect(); println!("{:?}", all.len()) // 0 }
However, it's not correct, since A{} is undoubtedly a legal expression.
A{}
A unit struct with
Enumerable
derived now enumerate 0 values.However, it's not correct, since
A{}
is undoubtedly a legal expression.