diff options
Diffstat (limited to 'tests/ui/pattern/non-structural-match-types.stderr')
-rw-r--r-- | tests/ui/pattern/non-structural-match-types.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/pattern/non-structural-match-types.stderr b/tests/ui/pattern/non-structural-match-types.stderr new file mode 100644 index 000000000..dea7c4695 --- /dev/null +++ b/tests/ui/pattern/non-structural-match-types.stderr @@ -0,0 +1,14 @@ +error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:19]` cannot be used in patterns + --> $DIR/non-structural-match-types.rs:9:9 + | +LL | const { || {} } => {}, + | ^^^^^^^^^^^^^^^ + +error: `[async block@$DIR/non-structural-match-types.rs:12:17: 12:25]` cannot be used in patterns + --> $DIR/non-structural-match-types.rs:12:9 + | +LL | const { async {} } => {}, + | ^^^^^^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors + |