List borrowed variables with Macro in the current scope

后端 未结 0 1833
盖世英雄少女心
盖世英雄少女心 2021-01-30 14:40

I want to write a macro that transforms this code

let a = ..;
{
  let b = ..;
  my_macro!({
    let d = a+b;
    a = d;
  });

  let c = ..;
  ..
}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题