fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
383 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