]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/non-structural-match-types.stderr
31168e29eb82fc583e800d035bd4e2d329c527ed
[rust.git] / src / test / ui / pattern / non-structural-match-types.stderr
1 error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:22]` cannot be used in patterns
2   --> $DIR/non-structural-match-types.rs:9:9
3    |
4 LL |         const { || {} } => {},
5    |         ^^^^^^^^^^^^^^^
6
7 error: `impl Future<Output = [async output]>` cannot be used in patterns
8   --> $DIR/non-structural-match-types.rs:12:9
9    |
10 LL |         const { async {} } => {},
11    |         ^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14