]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39848.stderr
Auto merge of #100251 - compiler-errors:tuple-trait-2, r=jackh726
[rust.git] / src / test / ui / issues / issue-39848.stderr
1 error: expected `{`, found `foo`
2   --> $DIR/issue-39848.rs:3:21
3    |
4 LL |         if $tgt.has_$field() {}
5    |                     ^^^^^^ expected `{`
6 ...
7 LL |     get_opt!(bar, foo);
8    |     ------------------ in this macro invocation
9    |
10 note: the `if` expression is missing a block after this condition
11   --> $DIR/issue-39848.rs:3:12
12    |
13 LL |         if $tgt.has_$field() {}
14    |            ^^^^^^^^^
15 ...
16 LL |     get_opt!(bar, foo);
17    |     ------------------ in this macro invocation
18    = note: this error originates in the macro `get_opt` (in Nightly builds, run with -Z macro-backtrace for more info)
19 help: try placing this code inside a block
20    |
21 LL |         if $tgt.has_{ $field() } {}
22    |                     +          +
23
24 error: aborting due to previous error
25