summary refs log tree commit diff
path: root/src/test/ui/issues/issue-39848.stderr
blob: a5d30b8561ab15daecbd48ad804d85f577aeaa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected `{`, found `foo`
  --> $DIR/issue-39848.rs:18:19
   |
LL |         if $tgt.has_$field() {}
   |         --                 - help: try placing this code inside a block: `{ foo(); }`
   |         |
   |         this `if` statement has a condition, but no block
...
LL |     get_opt!(bar, foo);
   |                   ^^^ expected `{`

error: aborting due to previous error