]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-37534.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-37534.stderr
1 error[E0405]: cannot find trait `Hash` in this scope
2   --> $DIR/issue-37534.rs:11:16
3    |
4 LL | struct Foo<T: ?Hash> { }
5    |                ^^^^ not found in this scope
6 help: possible 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:11:12
13    |
14 LL | struct Foo<T: ?Hash> { }
15    |            ^
16
17 error[E0392]: parameter `T` is never used
18   --> $DIR/issue-37534.rs:11:12
19    |
20 LL | struct Foo<T: ?Hash> { }
21    |            ^ unused type 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 occurred: E0392, E0405.
28 For more information about an error, try `rustc --explain E0392`.