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

7 lines
97 B
Rust

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