rust/tests/ui/issues/issue-39848.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
779 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error: expected `{`, found `foo`
--> $DIR/issue-39848.rs:3:21
2018-07-15 21:11:54 +00:00
|
LL | if $tgt.has_$field() {}
| ^^^^^^ expected `{`
2018-07-15 21:11:54 +00:00
...
LL | get_opt!(bar, foo);
2021-10-14 18:28:28 +00:00
| ------------------ in this macro invocation
|
note: the `if` expression is missing a block after this condition
--> $DIR/issue-39848.rs:3:12
|
LL | if $tgt.has_$field() {}
| ^^^^^^^^^
...
LL | get_opt!(bar, foo);
| ------------------ in this macro invocation
= note: this error originates in the macro `get_opt` (in Nightly builds, run with -Z macro-backtrace for more info)
help: try placing this code inside a block
|
LL | if $tgt.has_{ $field() } {}
| + +
2018-07-15 21:11:54 +00:00
error: aborting due to previous error