Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ch. 15.5: account for improved error message
Previously, the error message from the compiler only suggested changing the `impl` to use `&mut self`, but a (very helpful!) update to the error message suggests changing both the `impl` and the `trait` definitions, which is much better in the general case since changing one without the other will just produce a new error message: a point the original text points to with its suggestion to try and see what happens. Account for the new error message by keeping the framing of the reason as avoiding breaking the trait contract, but now explicitly in terms of good testing habits. Fixes #4140
- Loading branch information