u/SV-97in r/rust • Recommends
On “Can Rust be generic over synchronicity?”
Yoshua Wuyts' talk from 2023 (and the associated blog article) has a bunch of examples. In addition to mutability and constness there's also non-divergence (function provably terminates) and non-panic for example, as well as try (fallibility), a generator effect and a few more very interesting ones.
I think this could really tackle some of the issues that have cropped up and been lamented over time and probably simplify the language as a whole at the cost of having a more complex type system.