diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/closures/multiple-fn-bounds.stderr (renamed from src/test/ui/closures/multiple-fn-bounds.stderr) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/closures/multiple-fn-bounds.stderr b/tests/ui/closures/multiple-fn-bounds.stderr index eefc123fe..32a1edb00 100644 --- a/src/test/ui/closures/multiple-fn-bounds.stderr +++ b/tests/ui/closures/multiple-fn-bounds.stderr @@ -18,6 +18,10 @@ note: required by a bound in `foo` | LL | fn foo<F: Fn(&char) -> bool + Fn(char) -> bool>(f: F) { | ^^^^^^^^^^^^^^^^ required by this bound in `foo` +help: do not borrow the argument + | +LL | foo(move |char| v); + | ~~~~ error: aborting due to previous error |