aboutsummaryrefslogtreecommitdiff
path: root/src/parse_trait_sig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse_trait_sig.rs')
-rw-r--r--src/parse_trait_sig.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parse_trait_sig.rs b/src/parse_trait_sig.rs
index 5b1f91a..b7b7b3f 100644
--- a/src/parse_trait_sig.rs
+++ b/src/parse_trait_sig.rs
@@ -141,6 +141,7 @@ mod tests {
use syn::{TraitItemMethod, Type};
use crate::{
+ parse_assoc_type::DestType,
parse_trait_sig::{
parse_trait_signature, MethodParseError, SignatureChanges, TypeTransform,
},
@@ -172,8 +173,9 @@ mod tests {
let mut assoc_type_map = AssocTypeConversions::default();
let ident = format_ident!("A");
- let dest = Type::Verbatim(quote! {Example});
- assoc_type_map.0.insert(ident, &dest);
+ let dest_inner = Type::Verbatim(quote! {Example});
+ let dest = DestType::Into(&dest_inner);
+ assoc_type_map.0.insert(ident, dest);
assert!(matches!(
parse_trait_signature(&mut type1.sig, &assoc_type_map),