]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39848.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[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 }