about summary refs log tree commit diff
path: root/tests/ui/lowering/expr-in-pat-issue-99380.stderr
blob: 29438c9b063607d4ed6120802c6aaba0204af6f5 (plain)
1
2
3
4
5
6
7
8
9
10
error: arbitrary expressions aren't allowed in patterns
  --> $DIR/expr-in-pat-issue-99380.rs:10:10
   |
LL |     foo!(Some(3));
   |          ^^^^^^^
   |
   = note: the `expr` fragment specifier forces the metavariable's content to be an expression

error: aborting due to 1 previous error