Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CensoredUsername/aa6afed68f46659e41e806e6179bc3ae to your computer and use it in GitHub Desktop.
Save CensoredUsername/aa6afed68f46659e41e806e6179bc3ae to your computer and use it in GitHub Desktop.
Error log
$ cargo build
Compiling normal_macro v0.1.0 (C:\Users\Maurits\Projects\macro_bug\normal_macro)
error[E0425]: cannot find value `a` in this scope
--> src\main.rs:5:43
|
5 | ($test:expr) => {proc_macro::forward!($test)}
| ^^^^^ not found in this scope
...
12 | println!("{}", forward!(a));
| ----------- in this macro invocation
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment