cuihua
V2EX  ›  Rust

vscode 中, 声明宏内部不能代码跳转

  •  
  •   cuihua · Dec 27, 2024 · 2008 views
    This topic created in 532 days ago, the information mentioned may be changed or developed.

    大家好,代码如下,我不能从宏内部进行跳转, 是当前 vscode 还未支持该功能吗?

    fn func_print(name: &str) {
        println!("Hello, {}!", name);
    }
    
    macro_rules! func_macro {
        ($name:expr) => {
            func_print($name);
        };
    }
    
    fn main() {
        func_macro!("laozhu");
    }
    
    
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:35 · PVG 06:35 · LAX 15:35 · JFK 18:35
    ♥ Do have faith in what you're doing.