]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-37534.stderr
Rollup merge of #62806 - mati865:clippy, r=TimNN
[rust.git] / src / test / ui / issues / issue-37534.stderr
1 error[E0404]: expected trait, found derive macro `Hash`
2   --> $DIR/issue-37534.rs:1:16
3    |
4 LL | struct Foo<T: ?Hash> { }
5    |                ^^^^ not a trait
6 help: possible better candidate is found in another module, you can import it into scope
7    |
8 LL | use std::hash::Hash;
9    |
10
11 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported
12   --> $DIR/issue-37534.rs:1:12
13    |
14 LL | struct Foo<T: ?Hash> { }
15    |            ^
16
17 error[E0392]: parameter `T` is never used
18   --> $DIR/issue-37534.rs:1:12
19    |
20 LL | struct Foo<T: ?Hash> { }
21    |            ^ unused parameter
22    |
23    = help: consider removing `T` or using a marker such as `std::marker::PhantomData`
24
25 error: aborting due to 2 previous errors
26
27 Some errors have detailed explanations: E0392, E0404.
28 For more information about an error, try `rustc --explain E0392`.