diff options
| author | Kevin Per <kevin.per@protonmail.com> | 2021-02-09 17:18:28 +0000 |
|---|---|---|
| committer | Kevin Per <kevin.per@protonmail.com> | 2021-02-24 07:07:53 +0000 |
| commit | a3db47ab6c976137a26976d5c8060e7eadc05232 (patch) | |
| tree | a15d4c1a3093ce2434a3b64169e92067d863955f /src/test/ui/static | |
| parent | fe1bf8e05c39bdcc73fc09e246b7209444e389bc (diff) | |
| download | rust-a3db47ab6c976137a26976d5c8060e7eadc05232.tar.gz rust-a3db47ab6c976137a26976d5c8060e7eadc05232.zip | |
Add suggestion for iterators in iterators
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/static-reference-to-fn-2.stderr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/static/static-reference-to-fn-2.stderr b/src/test/ui/static/static-reference-to-fn-2.stderr index 028e11a60ce..ff15884bd44 100644 --- a/src/test/ui/static/static-reference-to-fn-2.stderr +++ b/src/test/ui/static/static-reference-to-fn-2.stderr @@ -40,6 +40,8 @@ LL | | statefn: &id(state1 as StateMachineFunc) | | ------------------------------ temporary value created here LL | | } | |_____^ returns a value referencing data owned by the current function + | + = help: use `.collect()` to allocate the iterator error: aborting due to 4 previous errors |
