diff --git a/src/expand.rs b/src/expand.rs index 7747e68..c2cfacb 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -403,7 +403,10 @@ fn transform_block(context: Context, sig: &mut Signature, block: &mut Block) { } else { quote! { #(#attrs)* - let #pat = #ident; + let #pat = { + let #ident = #ident; + #ident + }; } } }