]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-69020.opt.stderr
add test for issue 69020
[rust.git] / src / test / ui / consts / issue-69020.opt.stderr
1 error: this arithmetic operation will overflow
2   --> $DIR/issue-69020.rs:15:20
3    |
4 LL |     const N: i32 = -i32::MIN + T::N;
5    |                    ^^^^^^^^^ attempt to negate with overflow
6    |
7    = note: `#[deny(overflow)]` on by default
8
9 error: aborting due to previous error
10