]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-parameter-span.rs
Auto merge of #106975 - tmiasko:basic-blocks-cache, r=cjgillot
[rust.git] / tests / ui / macros / macro-parameter-span.rs
1 macro_rules! foo {
2     ($id: ident) => {
3         $id
4     }
5 }
6
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!(
11         x //~ ERROR cannot find value `x` in this scope
12         );
13 }