blob: 0769bce5fc80993db3f269e8cdab5e0e2e4c6819 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// reduced from rustc issue-69020-assoc-const-arith-overflow.rs
pub fn main() {}
pub trait Foo {
const OOB: i32;
}
impl<T: Foo> Foo for Vec<T> {
const OOB: i32 = [1][1] + T::OOB;
//~^ ERROR operation will panic
}
|