Sha256: 0d8ed712d25de898eae18cfdffc575a47f4d5596346058cf6cd50d016c4f8ce8

Contents?: true

Size: 1.47 KB

Versions: 13

Compression:

Stored size: 1.47 KB

Contents

error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied
 --> tests/ui/no-impl.rs:7:13
  |
4 | struct Error;
  | ------------ doesn't satisfy `Error: Into<anyhow::Error>`, `Error: anyhow::kind::TraitKind` or `Error: std::fmt::Display`
...
7 |     let _ = anyhow!(Error);
  |             ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
  |
  = note: the following trait bounds were not satisfied:
          `Error: Into<anyhow::Error>`
          which is required by `Error: anyhow::kind::TraitKind`
          `Error: std::fmt::Display`
          which is required by `&Error: anyhow::kind::AdhocKind`
          `&Error: Into<anyhow::Error>`
          which is required by `&Error: anyhow::kind::TraitKind`
note: the traits `Into` and `std::fmt::Display` must be implemented
 --> $RUST/core/src/fmt/mod.rs
  |
  | pub trait Display {
  | ^^^^^^^^^^^^^^^^^
  |
 ::: $RUST/core/src/convert/mod.rs
  |
  | pub trait Into<T>: Sized {
  | ^^^^^^^^^^^^^^^^^^^^^^^^
  = help: items from traits can only be used if the trait is implemented and in scope
  = note: the following traits define an item `anyhow_kind`, perhaps you need to implement one of them:
          candidate #1: `anyhow::kind::AdhocKind`
          candidate #2: `anyhow::kind::BoxedKind`
          candidate #3: `anyhow::kind::TraitKind`
  = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/anyhow-1.0.95/tests/ui/no-impl.stderr
wasmtime-28.0.0 ./ext/cargo-vendor/anyhow-1.0.95/tests/ui/no-impl.stderr
wasmtime-27.0.0 ./ext/cargo-vendor/anyhow-1.0.93/tests/ui/no-impl.stderr
wasmtime-26.0.0 ./ext/cargo-vendor/anyhow-1.0.91/tests/ui/no-impl.stderr
wasmtime-25.0.2 ./ext/cargo-vendor/anyhow-1.0.89/tests/ui/no-impl.stderr
wasmtime-25.0.1 ./ext/cargo-vendor/anyhow-1.0.86/tests/ui/no-impl.stderr
wasmtime-25.0.0 ./ext/cargo-vendor/anyhow-1.0.86/tests/ui/no-impl.stderr
wasmtime-24.0.0 ./ext/cargo-vendor/anyhow-1.0.86/tests/ui/no-impl.stderr
wasmtime-23.0.2 ./ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr
wasmtime-22.0.0 ./ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr
wasmtime-21.0.1 ./ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr
wasmtime-20.0.2 ./ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr
wasmtime-20.0.0 ./ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr