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