]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-67893.stderr
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / async-await / issues / issue-67893.stderr
1 error: generator cannot be sent between threads safely
2   --> $DIR/issue-67893.rs:9:7
3    |
4 LL |     g(issue_67893::run())
5    |       ^^^^^^^^^^^^^^^^^^ generator is not `Send`
6    |
7    = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
8 note: required by a bound in `g`
9   --> $DIR/issue-67893.rs:6:14
10    |
11 LL | fn g(_: impl Send) {}
12    |              ^^^^ required by this bound in `g`
13
14 error: aborting due to previous error
15