Esteban Küber
87ddc1ea33
Point at generic param through which a const is used in a pattern
```
error[E0158]: constant pattern depends on a generic parameter, which is not allowed
--> $DIR/associated-const-type-parameter-pattern.rs:20:9
|
LL | pub trait Foo {
| -------------
LL | const X: EFoo;
| ------------- constant defined here
...
LL | pub fn test<A: Foo, B: Foo>(arg: EFoo) {
| - constant depends on this generic param
LL | match arg {
LL | A::X => println!("A::X"),
| ^^^^ `const` depends on a generic parameter
```
2024-12-04 20:29:36 +00:00
..
2024-12-03 08:56:33 +00:00
2024-11-22 10:54:22 +00:00
2024-12-02 23:08:58 +01:00
2024-12-02 23:08:58 +01:00
2024-11-25 16:38:35 +08:00
2024-12-02 23:08:58 +01:00
2024-11-28 10:40:58 +01:00
2024-11-27 15:14:54 +00:00
2024-12-03 07:48:33 +01:00
2024-12-03 07:48:33 +01:00
2024-12-03 12:49:57 +00:00
2024-12-03 07:48:31 +01:00
2024-12-03 04:39:48 +00:00
2024-12-02 22:51:18 +00:00
2024-12-03 07:48:31 +01:00
2024-12-02 18:16:36 +00:00
2024-11-30 17:53:40 -08:00
2024-12-02 10:28:58 +00:00
2024-11-30 12:56:50 +08:00
2024-12-02 17:36:03 +01:00
2024-12-03 07:48:33 +01:00
2024-12-02 17:36:03 +01:00
2024-12-02 17:36:11 +01:00
2024-11-29 17:23:34 +11:00
2024-11-22 10:54:22 +00:00
2024-12-02 22:51:18 +00:00
2024-12-03 12:49:57 +00:00
2024-12-01 05:22:16 +00:00
2024-12-02 13:57:56 +01:00
2024-12-02 23:08:53 +01:00
2024-11-26 15:26:03 +01:00
2024-11-30 12:56:50 +08:00
2024-12-03 04:39:48 +00:00
2024-12-04 20:29:36 +00:00
2024-12-02 16:19:17 +11:00
2024-12-02 23:08:57 +01:00
2024-11-28 13:43:05 -05:00
2024-11-28 10:40:58 +01:00
2024-12-02 23:08:58 +01:00
2024-12-03 04:39:48 +00:00
2024-11-23 13:52:54 +01:00
2024-11-27 22:23:24 +01:00
2024-11-19 02:07:48 +00:00
2024-12-02 11:04:57 +00:00
2024-12-03 12:49:57 +00:00
2024-11-27 22:23:24 +01:00
2024-12-03 07:48:33 +01:00
2024-11-19 21:36:23 +01:00
2024-11-30 21:08:45 +00:00
2024-12-03 07:48:33 +01:00
2024-11-23 05:27:45 +00:00
2024-12-02 13:57:56 +01:00
2024-12-02 09:19:20 +00:00