summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/gat-in-trait-path.base.stderr')
-rw-r--r--tests/ui/generic-associated-types/gat-in-trait-path.base.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr b/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr
index fd54faaf3..9013d4295 100644
--- a/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr
+++ b/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr
@@ -12,6 +12,9 @@ LL | trait Foo {
LL | type A<'a> where Self: 'a;
| ^ ...because it contains the generic associated type `A`
= help: consider moving `A` to another trait
+ = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Foo` for this new enum and using it instead:
+ Fooy
+ Fooer<T>
error: aborting due to previous error