//@ check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] struct GenericStruct { val: i64 } impl From> for GenericStruct<{T + 1}> { fn from(other: GenericStruct) -> Self { Self { val: other.val } } } impl From> for GenericStruct { fn from(other: GenericStruct<{T + 1}>) -> Self { Self { val: other.val } } } fn main() {}