diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-11-15 19:43:33 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-11-23 12:17:48 -0800 |
| commit | 0da4c44190d657e7c28f077f99b2fa03f06e1649 (patch) | |
| tree | 408a09ca975ef32765528ff9b1df254e3e868b67 /src/test/ui/moves | |
| parent | 3a471b5fd8dcf4444be200b41925396a90a2188a (diff) | |
| download | rust-0da4c44190d657e7c28f077f99b2fa03f06e1649.tar.gz rust-0da4c44190d657e7c28f077f99b2fa03f06e1649.zip | |
Account for closures
Diffstat (limited to 'src/test/ui/moves')
| -rw-r--r-- | src/test/ui/moves/borrow-closures-instead-of-move.stderr | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/moves/borrow-closures-instead-of-move.stderr b/src/test/ui/moves/borrow-closures-instead-of-move.stderr index fbeeaf646e1..9a84ddef7e6 100644 --- a/src/test/ui/moves/borrow-closures-instead-of-move.stderr +++ b/src/test/ui/moves/borrow-closures-instead-of-move.stderr @@ -58,13 +58,6 @@ note: closure cannot be moved more than once as it is not `Copy` due to moving t | LL | x += 1; | ^ -note: consider changing this parameter type in function `takes_fnonce` to borrow instead if owning the value isn't necessary - --> $DIR/borrow-closures-instead-of-move.rs:34:20 - | -LL | fn takes_fnonce(_: impl FnOnce()) {} - | ------------ ^^^^^^^^^^^^^ this parameter takes ownership of the value - | | - | in this function help: consider mutably borrowing `closure` | LL | takes_fnonce(&mut closure); |
