fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0404]: expected trait, found derive macro `Hash` 2 --> $DIR/issue-37534.rs:1:16 3 | 4LL | struct Foo<T: ?Hash> { } 5 | ^^^^ not a trait 6help: possible better candidate is found in another module, you can import it into scope 7 | 8LL | use std::hash::Hash; 9 | 10 11warning: 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:1:12 13 | 14LL | struct Foo<T: ?Hash> { } 15 | ^ 16 17error[E0392]: parameter `T` is never used 18 --> $DIR/issue-37534.rs:1:12 19 | 20LL | struct Foo<T: ?Hash> { } 21 | ^ unused parameter 22 | 23 = help: consider removing `T` or using a marker such as `std::marker::PhantomData` 24 25error: aborting due to 2 previous errors 26 27Some errors have detailed explanations: E0392, E0404. 28For more information about an error, try `rustc --explain E0392`.