2019-07-14 19:28:17 -05:00
|
|
|
error[E0404]: expected trait, found derive macro `Hash`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37534.rs:1:16
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T: ?Hash> { }
|
2019-07-14 19:28:17 -05:00
|
|
|
| ^^^^ not a trait
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2020-05-04 17:12:06 -05:00
|
|
|
help: consider importing this trait instead
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | use std::hash::Hash;
|
|
|
|
|
|
|
|
|
|
2019-09-29 19:00:20 -05:00
|
|
|
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37534.rs:1:12
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T: ?Hash> { }
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0392]: parameter `T` is never used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37534.rs:1:12
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T: ?Hash> { }
|
2019-04-17 16:41:34 -05:00
|
|
|
| ^ unused parameter
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-07-14 19:28:17 -05:00
|
|
|
Some errors have detailed explanations: E0392, E0404.
|
2018-07-15 16:11:54 -05:00
|
|
|
For more information about an error, try `rustc --explain E0392`.
|