]>
Commit | Line | Data |
---|---|---|
9cc50fc6 SL |
1 | macro_rules! foo { |
2 | ($id: ident) => { | |
3 | $id | |
62682a34 SL |
4 | } |
5 | } | |
6 | ||
9cc50fc6 SL |
7 | // Testing that the error span points to the parameter 'x' in the callsite, |
8 | // not to the macro variable '$id' | |
9 | fn main() { | |
10 | foo!( | |
32a655c1 | 11 | x //~ ERROR cannot find value `x` in this scope |
9cc50fc6 | 12 | ); |
62682a34 | 13 | } |