Closed neilyoung closed 3 years ago
See https://docs.rs/state/0.4.1/state/#usage; you must enable the const_fn
feature.
P.S: Note that Rust nightly is no longer required.
0.4.2 was just released that makes this work on stable as well.
Yep. Already noticed. Thanks
Hi, I'm trying to follow the example code here https://docs.rs/state/0.4.1/state/
The compiler complains
Code:
What am I missing?