fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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