fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
592 B17 linesraw
1error: expected `{`, found `foo`
2  --> $DIR/issue-39848.rs:3:21
3   |
4LL |         if $tgt.has_$field() {}
5   |         --          ^^^^^^--
6   |         |           |
7   |         |           expected `{`
8   |         |           help: try placing this code inside a block: `{ $field() }`
9   |         this `if` expression has a condition, but no block
10...
11LL |     get_opt!(bar, foo);
12   |     ------------------- in this macro invocation
13   |
14   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16error: aborting due to previous error
17