//@ known-bug: rust-lang/rust#125556 //@ compile-flags: -Znext-solver=coherence #![feature(generic_const_exprs)] pub struct A {} impl A<2> { pub const fn B() {} } impl A<2> { pub const fn B() {} }