summaryrefslogtreecommitdiffstats
path: root/tests/ui/inline-const/const-match-pat-generic.stderr
blob: 4ffbde4101d729ce2555961acd2ec42f7c3b942d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: constant pattern depends on a generic parameter
  --> $DIR/const-match-pat-generic.rs:8:9
   |
LL |         const { V } => {},
   |         ^^^^^^^^^^^

error: constant pattern depends on a generic parameter
  --> $DIR/const-match-pat-generic.rs:20:9
   |
LL |         const { f(V) } => {},
   |         ^^^^^^^^^^^^^^

error: aborting due to 2 previous errors