macro-error: the self
argument is only allowed for functions in impl
blocks.
#19121
Labels
C-bug
Category: bug
This error is displayed in both ubuntu2404 and win11, but the code can be compiled and run correctly. I don't know if it is a problem with wasm_bindgen or ra.
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.2291-standalone (f3998f7 2025-02-02) [c:\Users\ace.vscode\extensions\rust-lang.rust-analyzer-0.3.2291-win32-x64\server\rust-analyzer.exe]
rustc version: (eg. output of
rustc -V
)rustc 1.84.0 (9fc6b4312 2025-01-07)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
vscode
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)default
repository link (if public, optional): (eg. rust-analyzer)
https://github.com/ahaoboy/ra-issue
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: