aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-21 08:33:52 +0100
committerMartin Fischer <martin@push-f.com>2021-11-21 08:36:10 +0100
commit34dc166a9bc003bad36c28aeb29b625195d20a74 (patch)
tree1a4b7fbcd673f8094b019263cbe954ef38abb97c /src/lib.rs
parentbd6f84036426c43e08078cf11e4ee70b7714ba2f (diff)
better errors for assoc types in where clauses
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 17cea6d..439288e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -110,9 +110,11 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream {
MethodParseError::AssocTypeInUnsupportedReturnType
| MethodParseError::UnconvertibleAssocTypeInFnInput,
)) => return abort!(span, "dynamize does not know how to convert this type"),
- Err((span, MethodParseError::UnconvertibleAssocTypeInTraitBound)) => {
- return abort!(span, "dynamize does not support associated types here")
- }
+ Err((
+ span,
+ MethodParseError::UnconvertibleAssocTypeInTraitBound
+ | MethodParseError::UnconvertibleAssocTypeInWhereClause,
+ )) => return abort!(span, "dynamize does not support associated types here"),
Err((span, MethodParseError::ImplTraitInInputs)) => {
return abort!(
span,