summary refs log tree commit diff
path: root/src/test/ui/inline-const/const-match-pat-generic.stderr
blob: 5fe5a7a6dad412b4eb97c6efc8f33939dd7e3b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0158]: const parameters cannot be referenced in patterns
  --> $DIR/const-match-pat-generic.rs:9:9
   |
LL |         const { V } => {},
   |         ^^^^^^^^^^^

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

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

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0158`.