2018-07-15 21:11:54 +00:00
|
|
|
error[E0277]: the trait bound `Bar: std::hash::Hash` is not satisfied
|
2020-04-01 01:10:13 +00:00
|
|
|
--> $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`
|
2019-09-04 17:17:59 +00:00
|
|
|
|
|
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
|
|
|
|
|
2019-09-04 17:17:59 +00:00
|
|
|
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
|
|
|
| - required by this bound in `std::hash::Hash::hash`
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
|
|
|
= 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`.
|