cuihua
V2EX  ›  Rust

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

  •  
  •   cuihua · Dec 27, 2024 · 1928 views
    This topic created in 500 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   ·   5624 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 01:24 · PVG 09:24 · LAX 18:24 · JFK 21:24
    ♥ Do have faith in what you're doing.