rust/tests/ui/async-await/async-closures/not-fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
495 B
Plaintext
Raw Permalink Normal View History

2024-02-14 23:52:57 +00:00
error: async closure does not implement `FnMut` because it captures state from its environment
2024-11-06 17:53:59 +00:00
--> $DIR/not-fn.rs:9:14
2024-02-14 23:52:57 +00:00
|
LL | needs_fn(async || {
| -------- ^^^^^^^^
| |
| required by a bound introduced by this call
|
note: required by a bound in `needs_fn`
2024-11-06 17:53:59 +00:00
--> $DIR/not-fn.rs:6:28
2024-02-14 23:52:57 +00:00
|
LL | fn needs_fn<T>(_: impl FnMut() -> T) {}
| ^^^^^^^^^^^^ required by this bound in `needs_fn`
error: aborting due to 1 previous error