diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-22 10:53:43 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-22 10:53:43 +0100 |
commit | 8178b4671b03a9c7d4dbe6c4ce66b9cb737c4e2d (patch) | |
tree | 7ffa56d4b74acacc35f6de6b9eea141643e51ce8 /src/lib.rs | |
parent | ad16a3e0ff064886a807c3c03610588f95943e2d (diff) |
rename AssocTypeError variants
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,8 +71,8 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { for item in &original_trait.items { if let TraitItem::Type(assoc_type) = item { match parse_assoc_type(assoc_type) { - Err((_, AssocTypeError::NoIntoBound)) => continue, - Err((span, AssocTypeError::AssocTypeInBound)) => { + Err((_, AssocTypeError::NoTraitBound)) => continue, + Err((span, AssocTypeError::TraitBoundContainsAssocType)) => { return abort!(span, "dynamize does not support associated types here") } Err((span, AssocTypeError::GenericAssociatedType)) => { |