1 error[E0404]: expected trait, found derive macro `Hash`
2 --> $DIR/issue-37534.rs:1:16
4 LL | struct Foo<T: ?Hash> { }
7 help: consider importing this trait instead
9 LL | use std::hash::Hash;
12 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
13 --> $DIR/issue-37534.rs:1:12
15 LL | struct Foo<T: ?Hash> { }
18 error[E0392]: parameter `T` is never used
19 --> $DIR/issue-37534.rs:1:12
21 LL | struct Foo<T: ?Hash> { }
24 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
25 = help: if you intended `T` to be a const parameter, use `const T: usize` instead
27 error: aborting due to 2 previous errors; 1 warning emitted
29 Some errors have detailed explanations: E0392, E0404.
30 For more information about an error, try `rustc --explain E0392`.