Sha256: e9b6bb14ab40b55cadae9d5824b9ed09a5dd9375c8443855798e4dd82ab985b6

Contents?: true

Size: 1.56 KB

Versions: 8

Compression:

Stored size: 1.56 KB

Contents

error: future cannot be sent between threads safely
  --> tests/ui/consider-restricting.rs:16:49
   |
16 |     async fn publish<T: IntoUrl>(&self, url: T) {}
   |                                                 ^^ future created by async block is not `Send`
   |
note: captured value is not `Send`
  --> tests/ui/consider-restricting.rs:16:41
   |
16 |     async fn publish<T: IntoUrl>(&self, url: T) {}
   |                                         ^^^ has type `T` which is not `Send`
   = note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51]` to the object type `dyn Future<Output = ()> + Send`
help: consider further restricting this bound
   |
16 |     async fn publish<T: IntoUrl + std::marker::Send>(&self, url: T) {}
   |                                 +++++++++++++++++++

error: future cannot be sent between threads safely
  --> tests/ui/consider-restricting.rs:23:40
   |
23 |     async fn publish<T>(&self, url: T) {}
   |                                        ^^ future created by async block is not `Send`
   |
note: captured value is not `Send`
  --> tests/ui/consider-restricting.rs:23:32
   |
23 |     async fn publish<T>(&self, url: T) {}
   |                                ^^^ has type `T` which is not `Send`
   = note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42]` to the object type `dyn Future<Output = ()> + Send`
help: consider further restricting this bound
   |
23 |     async fn publish<T + std::marker::Send>(&self, url: T) {}
   |                        +++++++++++++++++++

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-9.0.1 ./ext/cargo-vendor/async-trait-0.1.68/tests/ui/consider-restricting.stderr
wasmtime-8.0.0 ./ext/cargo-vendor/async-trait-0.1.68/tests/ui/consider-restricting.stderr
wasmtime-7.0.0 ./ext/cargo-vendor/async-trait-0.1.68/tests/ui/consider-restricting.stderr
wasmtime-6.0.1 ./ext/cargo-vendor/async-trait-0.1.64/tests/ui/consider-restricting.stderr
wasmtime-6.0.0 ./ext/cargo-vendor/async-trait-0.1.64/tests/ui/consider-restricting.stderr
wasmtime-5.0.0 ./ext/cargo-vendor/async-trait-0.1.62/tests/ui/consider-restricting.stderr
wasmtime-0.4.1 ./ext/cargo-vendor/async-trait-0.1.59/tests/ui/consider-restricting.stderr
wasmtime-0.4.0 ./ext/cargo-vendor/async-trait-0.1.59/tests/ui/consider-restricting.stderr