]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-51515.rs
Do not use a suggestion to change a binding's name to a type
[rust.git] / src / test / ui / issues / issue-51515.rs
index 54fd176de75f033f20935e787431d6a88d3be638..797c1085d517b1b44b9159f6252a29399d92c328 100644 (file)
@@ -5,8 +5,6 @@ fn main() {
     *foo = 32;
     //~^ ERROR cannot assign to `*foo`, which is behind a `&` reference
     let bar = foo;
-    //~^ HELP consider changing this to be a mutable reference
-    //~| SUGGESTION &mut i32
     *bar = 64;
     //~^ ERROR cannot assign to `*bar`, which is behind a `&` reference
 }