summary refs log tree commit diff
path: root/src/test/ui/inline-const/const-match-pat-generic.stderr
blob: ade200d99ba39c46390e7b9009866ec396c2f683 (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: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: constant pattern depends on a generic parameter
  --> $DIR/const-match-pat-generic.rs:20:9
   |
LL |         const { f(V) } => {},
   |         ^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

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