blob: 8b9597f33e307e2a8746e908f9418b53f0775c62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error[E0404]: expected trait, found derive macro `Hash`
--> $DIR/relaxing-default-bound-error-37534.rs:1:16
|
LL | struct Foo<T: ?Hash> {}
| ^^^^ not a trait
|
help: consider importing this trait instead
|
LL + use std::hash::Hash;
|
error: bound modifier `?` can only be applied to `Sized`
--> $DIR/relaxing-default-bound-error-37534.rs:1:15
|
LL | struct Foo<T: ?Hash> {}
| ^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0404`.
|