2018-07-15 16:11:54 -05:00
|
|
|
error[E0405]: cannot find trait `Hash` in this scope
|
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> { }
|
|
|
|
| ^^^^ not found in this scope
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
|
|
|
LL | use std::hash::Hash;
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: consider removing `T` or using a marker such as `std::marker::PhantomData`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0392, E0405.
|
2018-07-15 16:11:54 -05:00
|
|
|
For more information about an error, try `rustc --explain E0392`.
|