1 error[E0425]: cannot find value `foo` in this scope
2 --> $DIR/issue-38586.rs:6:10
5 | ^ not found in this scope
7 = note: this error originates in the derive macro `A` (in Nightly builds, run with -Z macro-backtrace for more info)
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0425`.