summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-37534.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/issues/issue-37534.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/issues/issue-37534.stderr b/tests/ui/issues/issue-37534.stderr
index 7d3dd8800..03fea2c16 100644
--- a/tests/ui/issues/issue-37534.stderr
+++ b/tests/ui/issues/issue-37534.stderr
@@ -1,7 +1,7 @@
error[E0404]: expected trait, found derive macro `Hash`
--> $DIR/issue-37534.rs:1:16
|
-LL | struct Foo<T: ?Hash> { }
+LL | struct Foo<T: ?Hash> {}
| ^^^^ not a trait
|
help: consider importing this trait instead
@@ -9,16 +9,16 @@ help: consider importing this trait instead
LL + use std::hash::Hash;
|
-warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
- --> $DIR/issue-37534.rs:1:12
+warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
+ --> $DIR/issue-37534.rs:1:15
|
-LL | struct Foo<T: ?Hash> { }
- | ^
+LL | struct Foo<T: ?Hash> {}
+ | ^^^^^
error[E0392]: parameter `T` is never used
--> $DIR/issue-37534.rs:1:12
|
-LL | struct Foo<T: ?Hash> { }
+LL | struct Foo<T: ?Hash> {}
| ^ unused parameter
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`