error: expected pattern, found `}` --> $DIR/issue-31804.rs:6:1 | LL | } | ^ expected pattern error: aborting due to 1 previous error