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.

8 lines
116 B
Rust
Raw Normal View History

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