blob: 4f522626e52fe545587885745f66f12c15228125 [file] [edit]
error[E0158]: constant pattern cannot depend on generic parameters
--> $DIR/generic-in-path.rs:12:9
|
LL | impl<const N: usize> Thing<N> {
| -----------------------------
LL | const A: Self = Thing;
| ------------- constant defined here
...
LL | <Thing<N>>::A => {}
| ^^^^^^^^^^^^^ `const` depends on a generic parameter
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0158`.