about summary refs log tree commit diff
path: root/tests/ui/issues/issue-37534.stderr
blob: 086073542030112afe0bba6953400a92c6685590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0404]: expected trait, found derive macro `Hash`
  --> $DIR/issue-37534.rs:1:16
   |
LL | struct Foo<T: ?Hash> {}
   |                ^^^^ not a trait
   |
help: consider importing this trait instead
   |
LL + use std::hash::Hash;
   |

error: bound modifier `?` can only be applied to `Sized`
  --> $DIR/issue-37534.rs:1:15
   |
LL | struct Foo<T: ?Hash> {}
   |               ^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0404`.