Skip to content
Myr

Ui test changes for trybuild 1.0.66

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 9bd74a1 · Browse files · 2 files+29 added−29 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+29 added−29 removed

  • tests:+28 added−28 removed
  • other:+1 added−1 removed

2 files+29 added−29 removed

modified:tests/ui/no-impl.stderr+28 added-28 removed
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 | ------------6 | |7 | doesn't satisfy `Error: Into<anyhow::Error>`8 | doesn't satisfy `Error: anyhow::kind::TraitKind`9 | doesn't satisfy `Error: std::fmt::Display`2 --> tests/ui/no-impl.rs:7:133 |44 | struct Error;5 | ------------6 | |7 | doesn't satisfy `Error: Into<anyhow::Error>`8 | doesn't satisfy `Error: anyhow::kind::TraitKind`9 | doesn't satisfy `Error: std::fmt::Display`10...117 | let _ = anyhow!(Error);12 | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds13 |14 = note: the following trait bounds were not satisfied:15 `Error: Into<anyhow::Error>`16 which is required by `Error: anyhow::kind::TraitKind`17 `Error: std::fmt::Display`18 which is required by `&Error: anyhow::kind::AdhocKind`19 `&Error: Into<anyhow::Error>`20 which is required by `&Error: anyhow::kind::TraitKind`117 | let _ = anyhow!(Error);12 | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds13 |14 = note: the following trait bounds were not satisfied:15 `Error: Into<anyhow::Error>`16 which is required by `Error: anyhow::kind::TraitKind`17 `Error: std::fmt::Display`18 which is required by `&Error: anyhow::kind::AdhocKind`19 `&Error: Into<anyhow::Error>`20 which is required by `&Error: anyhow::kind::TraitKind`21note: the following traits must be implemented22 --> $RUST/core/src/fmt/mod.rs23 |24 | pub trait Display {25 | ^^^^^^^^^^^^^^^^^26 |27 ::: $RUST/core/src/convert/mod.rs28 |29 | pub trait Into<T>: Sized {30 | ^^^^^^^^^^^^^^^^^^^^^^^^31 = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)22 --> $RUST/core/src/fmt/mod.rs23 |24 | pub trait Display {25 | ^^^^^^^^^^^^^^^^^26 |27 ::: $RUST/core/src/convert/mod.rs28 |29 | pub trait Into<T>: Sized {30 | ^^^^^^^^^^^^^^^^^^^^^^^^31 = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)
modified:Cargo.toml+1 added-1 removed