blob: 45e16264973886cf78fa2da18a3224ac4bff20cd (
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: `impl Future<Output = ()>` cannot be used in patterns
--> $DIR/non-structural-match-types.rs:12:9
|
LL | const { async {} } => {},
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
|