]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline-const/const-match-pat-generic.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / inline-const / const-match-pat-generic.stderr
1 error: constant pattern depends on a generic parameter
2   --> $DIR/const-match-pat-generic.rs:8:9
3    |
4 LL |         const { V } => {},
5    |         ^^^^^^^^^^^
6
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:8:9
15    |
16 LL |         const { V } => {},
17    |         ^^^^^^^^^^^
18
19 error: constant pattern depends on a generic parameter
20   --> $DIR/const-match-pat-generic.rs:21:9
21    |
22 LL |         const { f(V) } => {},
23    |         ^^^^^^^^^^^^^^
24
25 error: aborting due to 4 previous errors
26