]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-80186-mut-binding-help-suggestion.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / 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 }