no-impl.stderr
This file
Path
tests/ui/no-impl.stderr
32 lines · 1.6 KiB
Last changed by
Update ui test suite to nightly-2026-08-22David Tolnaybefore adoptionc63b279
History of this fileTake it
1error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied2 --> tests/ui/no-impl.rs:7:133 |44 | struct Error;5 | ------------ doesn't satisfy `Error: anyhow::__private::kind::TraitKind`, `Error: std::error::Error` or `Error: std::fmt::Display`6...77 | let _ = anyhow!(Error);8 | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds9 |10 = note: the following trait bounds were not satisfied:11 `Error: std::error::Error`12 which is required by `Error: anyhow::__private::kind::TraitKind`13 `Error: std::fmt::Display`14 which is required by `&Error: anyhow::__private::kind::AdhocKind`15 `Error: std::error::Error`16 which is required by `&Error: anyhow::__private::kind::TraitKind`17note: the traits `std::error::Error` and `std::fmt::Display` must be implemented18 --> $RUST/core/src/fmt/mod.rs19 |20 | pub trait Display: PointeeSized {21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^22 |23 ::: $RUST/core/src/error.rs24 |25 | pub trait Error: Debug + Display {26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^27 = help: items from traits can only be used if the trait is implemented and in scope28 = note: the following traits define an item `anyhow_kind`, perhaps you need to implement one of them:29 candidate #1: `anyhow::__private::kind::AdhocKind`30 candidate #2: `anyhow::__private::kind::BoxedKind`31 candidate #3: `anyhow::__private::kind::TraitKind`32 = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)