]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `Bar: Hash` is not satisfied |
ba9703b0 | 2 | --> $DIR/issue-21160.rs:8:12 |
8faf50e0 | 3 | | |
136023e0 XL |
4 | LL | #[derive(Hash)] |
5 | | ---- in this derive macro expansion | |
8faf50e0 | 6 | LL | struct Foo(Bar); |
1b1a35ee | 7 | | ^^^ the trait `Hash` is not implemented for `Bar` |
8faf50e0 | 8 | | |
17df50a5 | 9 | = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) |
04454e1e FG |
10 | help: consider annotating `Bar` with `#[derive(Hash)]` |
11 | | | |
12 | LL | #[derive(Hash)] | |
13 | | | |
8faf50e0 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |