Skip to content

Commit

Permalink
Update ui test output to nightly-2024-07-11
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 10, 2024
1 parent b33b00f commit 3ea0a11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/ui/borrow-as-mut.stderr
Original file line number Diff line number Diff line change
@@ -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<u8>) {
| - 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<u8>) {
| +++

0 comments on commit 3ea0a11

Please sign in to comment.