rust/tests/ui/numbers-arithmetic/location-mul-assign-overflow.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
131 B
Rust
Raw Normal View History

2023-11-24 00:54:06 +08:00
// run-fail
// ignore-wasm32
// error-pattern:location-mul-assign-overflow.rs
fn main() {
let mut a: u8 = 255;
a *= &2;
}