diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-23 06:37:15 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-23 06:37:33 +0100 |
commit | b4acbbf52be85595cf8dcb839217fc4e2958328e (patch) | |
tree | 72d0e0497f1a70274e501d7c7f80fc34ce42beef | |
parent | 0196882c9e70205723e7d466b938dd3fd5735793 (diff) |
mention Fn support in error message
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | ui-tests/src/bin/param_type_assoc_type.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); |