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-02-22 13:33:10 +01:00
parent cab7d671ba
commit d3357ad94a
+1 -1
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
|