diff --git a/tests/ui/borrow-as-mut.stderr b/tests/ui/borrow-as-mut.stderr index 37bc058..4fff69e 100644 --- a/tests/ui/borrow-as-mut.stderr +++ b/tests/ui/borrow-as-mut.stderr @@ -1,7 +1,10 @@ error[E0596]: cannot borrow `a` as mutable, as it is not declared as mutable --> tests/ui/borrow-as-mut.rs:9:5 | -8 | async fn borrow_mut(a: Vec) { - | - help: consider changing this to be mutable: `mut a` 9 | a.clear(); //~ ERROR E0596 | ^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +8 | async fn borrow_mut(mut a: Vec) { + | +++