cuihua
V2EX  ›  Rust

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

  •  
  •   cuihua · Dec 27, 2024 · 1990 views
    This topic created in 523 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   ·   2618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
    ♥ Do have faith in what you're doing.