mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
21 lines
573 B
Plaintext
21 lines
573 B
Plaintext
error[E0404]: expected trait, found derive macro `Hash`
|
|
--> $DIR/issue-37534.rs:1:16
|
|
|
|
|
LL | struct Foo<T: ?Hash> {}
|
|
| ^^^^ not a trait
|
|
|
|
|
help: consider importing this trait instead
|
|
|
|
|
LL + use std::hash::Hash;
|
|
|
|
|
|
|
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
--> $DIR/issue-37534.rs:1:15
|
|
|
|
|
LL | struct Foo<T: ?Hash> {}
|
|
| ^^^^^
|
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
|
|
|
For more information about this error, try `rustc --explain E0404`.
|