diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/closures/issue-84044-drop-non-mut.stderr (renamed from src/test/ui/closures/issue-84044-drop-non-mut.stderr) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/closures/issue-84044-drop-non-mut.stderr b/tests/ui/closures/issue-84044-drop-non-mut.stderr index c0bfad263..5335a056c 100644 --- a/src/test/ui/closures/issue-84044-drop-non-mut.stderr +++ b/tests/ui/closures/issue-84044-drop-non-mut.stderr @@ -1,10 +1,13 @@ error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable --> $DIR/issue-84044-drop-non-mut.rs:5:10 | -LL | let f = || {}; - | - help: consider changing this to be mutable: `mut f` LL | drop(&mut f); | ^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut f = || {}; + | +++ error: aborting due to previous error |