]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39848.rs
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / issues / issue-39848.rs
1 macro_rules! get_opt {
2     ($tgt:expr, $field:ident) => {
3         if $tgt.has_$field() {} //~ ERROR expected `{`, found `foo`
4     }
5 }
6
7 fn main() {
8     get_opt!(bar, foo);
9 }