2024-12-04 20:49:05 +00:00
|
|
|
error[E0158]: constant pattern cannot depend on generic parameters
|
2024-02-01 10:27:54 +00:00
|
|
|
--> $DIR/const-match-pat-generic.rs:7:9
|
2021-08-14 17:29:04 +00:00
|
|
|
|
|
2021-12-05 21:38:37 +00:00
|
|
|
LL | const { V } => {},
|
2024-11-20 03:08:52 +00:00
|
|
|
| ^^^^^^^^^^^ `const` depends on a generic parameter
|
2021-08-14 17:29:04 +00:00
|
|
|
|
2024-12-04 20:49:05 +00:00
|
|
|
error[E0158]: constant pattern cannot depend on generic parameters
|
2024-02-01 10:27:54 +00:00
|
|
|
--> $DIR/const-match-pat-generic.rs:19:9
|
2021-12-05 21:38:37 +00:00
|
|
|
|
|
|
|
|
LL | const { f(V) } => {},
|
2024-11-20 03:08:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^ `const` depends on a generic parameter
|
2021-12-05 21:38:37 +00:00
|
|
|
|
2023-02-27 17:43:39 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2021-08-14 17:29:04 +00:00
|
|
|
|
2024-07-13 16:32:10 +00:00
|
|
|
For more information about this error, try `rustc --explain E0158`.
|