]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-37534.stderr
Rollup merge of #95368 - lopopolo:lopopolo/string-try-reserve-exact-doc-typo, r=Dylan-DPC
[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    |
7 help: consider importing this trait instead
8    |
9 LL | use std::hash::Hash;
10    |
11
12 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
13   --> $DIR/issue-37534.rs:1:12
14    |
15 LL | struct Foo<T: ?Hash> { }
16    |            ^
17
18 error[E0392]: parameter `T` is never used
19   --> $DIR/issue-37534.rs:1:12
20    |
21 LL | struct Foo<T: ?Hash> { }
22    |            ^ unused parameter
23    |
24    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
25
26 error: aborting due to 2 previous errors; 1 warning emitted
27
28 Some errors have detailed explanations: E0392, E0404.
29 For more information about an error, try `rustc --explain E0392`.