summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wf/wf-impl-associated-type-trait.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/wf/wf-impl-associated-type-trait.stderr')
-rw-r--r--src/test/ui/wf/wf-impl-associated-type-trait.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/wf/wf-impl-associated-type-trait.stderr b/src/test/ui/wf/wf-impl-associated-type-trait.stderr
new file mode 100644
index 000000000..bdf8bba5e
--- /dev/null
+++ b/src/test/ui/wf/wf-impl-associated-type-trait.stderr
@@ -0,0 +1,19 @@
+error[E0277]: the trait bound `T: MyHash` is not satisfied
+ --> $DIR/wf-impl-associated-type-trait.rs:17:16
+ |
+LL | type Bar = MySet<T>;
+ | ^^^^^^^^ the trait `MyHash` is not implemented for `T`
+ |
+note: required by a bound in `MySet`
+ --> $DIR/wf-impl-associated-type-trait.rs:8:20
+ |
+LL | pub struct MySet<T:MyHash> {
+ | ^^^^^^ required by this bound in `MySet`
+help: consider restricting type parameter `T`
+ |
+LL | impl<T: MyHash> Foo for T {
+ | ++++++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.