fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
384 B13 linesraw
1error: expected `{`, found `foo`
2  --> $DIR/issue-39848.rs:8:19
3   |
4LL |         if $tgt.has_$field() {}
5   |         --                -- help: try placing this code inside a block: `{ () }`
6   |         |
7   |         this `if` statement has a condition, but no block
8...
9LL |     get_opt!(bar, foo);
10   |                   ^^^ expected `{`
11
12error: aborting due to previous error
13