]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | error[E0158]: const parameters cannot be referenced in patterns |
a2a8927a | 2 | --> $DIR/const-match-pat-generic.rs:9:9 |
5869c6ff | 3 | | |
a2a8927a XL |
4 | LL | const { V } => {}, |
5 | | ^^^^^^^^^^^ | |
5869c6ff | 6 | |
a2a8927a XL |
7 | error: constant pattern depends on a generic parameter |
8 | --> $DIR/const-match-pat-generic.rs:21:9 | |
9 | | | |
10 | LL | const { f(V) } => {}, | |
11 | | ^^^^^^^^^^^^^^ | |
12 | ||
13 | error: constant pattern depends on a generic parameter | |
14 | --> $DIR/const-match-pat-generic.rs:21:9 | |
15 | | | |
16 | LL | const { f(V) } => {}, | |
17 | | ^^^^^^^^^^^^^^ | |
18 | ||
19 | error: aborting due to 3 previous errors | |
5869c6ff XL |
20 | |
21 | For more information about this error, try `rustc --explain E0158`. |