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
Provenance
- Commit
f2123ab- Tree
4bdfe10- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
9bd74a1
2 files changed+29 added−29 removed
modified:tests/ui/no-impl.stderr+28 added-28 removed
1 error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied2- --> tests/ui/no-impl.rs:7:133- |4-4 | 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+ |4+4 | 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 ...11-7 | 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`11+7 | 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`21 note: 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
21 unmodified lines2223242526262728293021 unmodified linesfutures = { version = "0.3", default-features = false }rustversion = "1.0.6"syn = { version = "1.0", features = ["full"] }thiserror = "1.0"trybuild = { version = "1.0.49", features = ["diff"] }trybuild = { version = "1.0.66", features = ["diff"] }
[package.metadata.docs.rs]targets = ["x86_64-unknown-linux-gnu"]rustdoc-args = ["--cfg", "doc_cfg"]