rust/tests/ui/issues/issue-37534.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
886 B
Plaintext
Raw Normal View History

error[E0404]: expected trait, found derive macro `Hash`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-37534.rs:1:16
2018-07-15 21:11:54 +00:00
|
LL | struct Foo<T: ?Hash> {}
| ^^^^ not a trait
|
help: consider importing this trait instead
2018-07-15 21:11:54 +00:00
|
2023-03-18 02:18:39 +00:00
LL + use std::hash::Hash;
2018-07-15 21:11:54 +00:00
|
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
--> $DIR/issue-37534.rs:1:15
2018-07-15 21:11:54 +00:00
|
LL | struct Foo<T: ?Hash> {}
| ^^^^^
2018-07-15 21:11:54 +00:00
error[E0392]: type parameter `T` is never used
2018-12-25 15:56:47 +00:00
--> $DIR/issue-37534.rs:1:12
2018-07-15 21:11:54 +00:00
|
LL | struct Foo<T: ?Hash> {}
| ^ unused type parameter
2018-07-15 21:11:54 +00:00
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
2018-07-15 21:11:54 +00:00
error: aborting due to 2 previous errors; 1 warning emitted
2018-07-15 21:11:54 +00:00
Some errors have detailed explanations: E0392, E0404.
2018-07-15 21:11:54 +00:00
For more information about an error, try `rustc --explain E0392`.