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

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

8 lines
115 B
Rust
Raw Normal View History

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