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

7 lines
97 B
Rust

//@ run-fail
//@ error-pattern:location-mul-overflow.rs
fn main() {
let _: u8 = 255 * &2;
}