]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-80186-mut-binding-help-suggestion.rs
Auto merge of #106294 - Nilstrieb:noundef-everything, r=nikic
[rust.git] / tests / ui / pattern / issue-80186-mut-binding-help-suggestion.rs
1 // Regression test for correct pretty-printing of an AST representing `&(mut x)` in help
2 // suggestion diagnostic.
3
4 fn main() {
5     let mut &x = &0;
6     //~^ ERROR `mut` must be attached to each individual binding
7     //~| HELP add `mut` to each binding
8     //~| SUGGESTION &(mut x)
9 }