diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/parse_assoc_type.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_assoc_type.rs b/src/parse_assoc_type.rs index 048e58c..856735d 100644 --- a/src/parse_assoc_type.rs +++ b/src/parse_assoc_type.rs @@ -79,11 +79,11 @@ pub fn parse_assoc_type( } } } - let path = &bound.path; + let bounds = &assoc_type.bounds; return Ok(( &assoc_type.ident, DestType::Box(BoxType { - inner: quote! {dyn #path}, + inner: quote! {dyn #bounds}, placeholder_lifetime: !lifetime_bounds(&assoc_type.bounds) .any(|l| l.ident == "static"), }), |