Hello, is there a way to define trait method which returns same type but with another const generic params?
struct A<const N: usize> {}
impl<const N: usize> A<{N}> {
pub fn minus_one(self) -> A<{N-1}> {
A {}
}
}
trait MinusOne<const N: usize> {
fn minus_one(self) -> Self<{N - 1}>/* Doesn't work( */;
}