about summary refs log tree commit diff
path: root/tests/ui/suggestions/suggest-ref-mut.rs
AgeCommit message (Collapse)AuthorLines
2025-04-10compiletest: Trim the value of `dont-require-annotations`Vadim Petrochenkov-1/+1
2025-04-10compiletest: Make `SUGGESTION` annotations viralVadim Petrochenkov-0/+2
2025-01-28Tweak `&mut self` suggestion spanEsteban Küber-1/+1
``` error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference --> $DIR/issue-38147-1.rs:17:9 | LL | self.s.push('x'); | ^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable | help: consider changing this to be a mutable reference | LL | fn f(&mut self) { | +++ ``` Note the suggestion to add `mut` instead of replacing the entire `&self` with `&mut self`.
2023-05-05tweak spans for `ref mut` suggestionEzra Shaw-3/+0
2023-01-11Move /src/test to /testsAlbert Larsan-0/+30