2019-07-15 03:28:17 +03:00
|
|
|
error[E0404]: expected trait, found derive macro `Hash`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-37534.rs:1:16
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2023-10-30 17:47:07 +00:00
|
|
|
LL | struct Foo<T: ?Hash> {}
|
2019-07-15 03:28:17 +03:00
|
|
|
| ^^^^ not a trait
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2020-05-04 18:12:06 -04:00
|
|
|
help: consider importing this trait instead
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::hash::Hash;
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
|
|
2025-01-21 09:17:40 +00:00
|
|
|
error: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
2023-10-30 17:47:07 +00:00
|
|
|
--> $DIR/issue-37534.rs:1:15
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2023-10-30 17:47:07 +00:00
|
|
|
LL | struct Foo<T: ?Hash> {}
|
|
|
|
|
| ^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2025-01-21 09:17:40 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2024-10-30 02:28:37 +00:00
|
|
|
For more information about this error, try `rustc --explain E0404`.
|