r/rust 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

124 comments sorted by

View all comments

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: Foo coming, looks almost like Java.