aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs2
-rw-r--r--ui-tests/src/bin/param_type_assoc_type.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 05fdb81..dbac013 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -183,7 +183,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream {
MethodError::AssocTypeInInputs => {
return abort!(
span,
- "dynamize does not support associated types in parameter types"
+ "dynamize does not support associated types in parameter types (except in Fn arguments)"
)
}
MethodError::ImplTraitInInputs => {
diff --git a/ui-tests/src/bin/param_type_assoc_type.stderr b/ui-tests/src/bin/param_type_assoc_type.stderr
index 08620fb..8295ff1 100644
--- a/ui-tests/src/bin/param_type_assoc_type.stderr
+++ b/ui-tests/src/bin/param_type_assoc_type.stderr
@@ -1,4 +1,4 @@
-error: dynamize does not support associated types in parameter types
+error: dynamize does not support associated types in parameter types (except in Fn arguments)
--> src/bin/param_type_assoc_type.rs:3:20
|
3 | fn f(&self, x: Self::A);