Update to changed compiler error in 1.58 (#708)

The trybuild tests needed to be updated for 1.58. We only run the tests
on stable (but build on other toolchains).
This commit is contained in:
David Pedersen 2022-01-14 09:32:34 +01:00 committed by GitHub
parent 6d01f3968e
commit 5ffab810c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ error: future cannot be sent between threads safely
4 | async fn handler() {
| ^^^^^ future returned by `handler` is not `Send`
|
= help: within `impl Future`, the trait `Send` is not implemented for `Rc<()>`
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
note: future is not `Send` as this value is used across an await
--> tests/fail/not_send.rs:6:5
|