add track_caller for arith ops

This commit is contained in:
bohan 2023-11-24 00:54:06 +08:00
parent 91f7f266ce
commit fc87d6e23d
16 changed files with 95 additions and 4 deletions

View file

@ -0,0 +1,8 @@
// run-fail
// ignore-wasm32
// error-pattern:location-add-assign-overflow.rs
fn main() {
let mut a: u8 = 255;
a += &1;
}