summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/non-structural-match-types.stderr
blob: dea7c4695cc181b84a86dc949390cf494ec7da6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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