aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-23 06:37:15 +0100
committerMartin Fischer <martin@push-f.com>2021-11-23 06:37:33 +0100
commitb4acbbf52be85595cf8dcb839217fc4e2958328e (patch)
tree72d0e0497f1a70274e501d7c7f80fc34ce42beef
parent0196882c9e70205723e7d466b938dd3fd5735793 (diff)
mention Fn support in error message
-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);