| 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`. |