1 error[E0405]: cannot find trait `Hash` in this scope
2 --> $DIR/issue-37534.rs:11:16
4 LL | struct Foo<T: ?Hash> { }
5 | ^^^^ not found in this scope
6 help: possible candidate is found in another module, you can import it into scope
8 LL | use std::hash::Hash;
11 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported
12 --> $DIR/issue-37534.rs:11:12
14 LL | struct Foo<T: ?Hash> { }
17 error[E0392]: parameter `T` is never used
18 --> $DIR/issue-37534.rs:11:12
20 LL | struct Foo<T: ?Hash> { }
21 | ^ unused type parameter
23 = help: consider removing `T` or using a marker such as `std::marker::PhantomData`
25 error: aborting due to 2 previous errors
27 Some errors occurred: E0392, E0405.
28 For more information about an error, try `rustc --explain E0392`.