add track_caller for arith ops
This commit is contained in:
parent
91f7f266ce
commit
fc87d6e23d
16 changed files with 95 additions and 4 deletions
|
@ -0,0 +1,8 @@
|
|||
// run-fail
|
||||
// ignore-wasm32
|
||||
// error-pattern:location-add-assign-overflow.rs
|
||||
|
||||
fn main() {
|
||||
let mut a: u8 = 255;
|
||||
a += &1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue