File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/ide-diagnostics/src/handlers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -589,17 +589,17 @@ fn f() {
589
589
let y = &x[2];
590
590
let x = Foo;
591
591
let y = &mut x[2];
592
- //^^^^ 💡 error: cannot mutate immutable variable `x`
592
+ //^💡 error: cannot mutate immutable variable `x`
593
593
let mut x = &mut Foo;
594
594
//^^^^^ 💡 weak: variable does not need to be mutable
595
595
let y: &mut (i32, u8) = &mut x[2];
596
596
let x = Foo;
597
597
let ref mut y = x[7];
598
- //^^^^ 💡 error: cannot mutate immutable variable `x`
598
+ //^ 💡 error: cannot mutate immutable variable `x`
599
599
let (ref mut y, _) = x[3];
600
- //^^^^ 💡 error: cannot mutate immutable variable `x`
600
+ //^ 💡 error: cannot mutate immutable variable `x`
601
601
match x[10] {
602
- //^^^^^ 💡 error: cannot mutate immutable variable `x`
602
+ //^ 💡 error: cannot mutate immutable variable `x`
603
603
(ref y, _) => (),
604
604
(_, ref mut y) => (),
605
605
}
You can’t perform that action at this time.
0 commit comments