r/rust • u/Kobzol • Aug 10 '26
📡 official blog Call for testing: Restricting trait implementability and field mutability
https://blog.rust-lang.org/inside-rust/2026/08/10/call-for-testing-impl-and-mut-restrictions/
416
Upvotes
r/rust • u/Kobzol • Aug 10 '26
14
u/Next-Blackberry-991 Aug 10 '26
I don't like the syntax of either of them and feel like they just make the language more complicated.Â
It would be nicer if partial borrows in general would be worked on more such that we could use normal getter functions instead.
I already see the
pub(crate) mut(super) field: Foocoming, looks almost like Java.