summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2294-if-let-guard/macro-expanded.stderr
blob: 00c1c303d2b024b1bddf5dca199e9d67e67739ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected expression, found `let` statement
  --> $DIR/macro-expanded.rs:7:20
   |
LL |     ($e:expr) => { let Some(x) = $e }
   |                    ^^^
...
LL |         () if m!(Some(5)) => {}
   |               ----------- in this macro invocation
   |
   = note: only supported directly in conditions of `if` and `while` expressions
   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error