// reduced from rustc issue-69020-assoc-const-arith-overflow.rs pub fn main() {} pub trait Foo { const OOB: i32; } impl Foo for Vec { const OOB: i32 = [1][1] + T::OOB; //~^ ERROR operation will panic }