rust/src/test/ui/issues/issue-21160.stderr

17 lines
606 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0277]: the trait bound `Bar: std::hash::Hash` is not satisfied
--> $DIR/issue-21160.rs:8:12
2018-07-15 21:11:54 +00:00
|
LL | struct Foo(Bar);
| ^^^ the trait `std::hash::Hash` is not implemented for `Bar`
|
2020-06-12 02:31:49 +00:00
::: $SRC_DIR/core/src/hash/mod.rs:LL:COL
2018-07-15 21:11:54 +00:00
|
LL | fn hash<H: Hasher>(&self, state: &mut H);
| - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.