fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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