about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/location-add-overflow.rs
blob: 65452e2c2c294765ae1cbfefb677eb9dde0ef354 (plain)
1
2
3
4
5
6
7
//@ run-fail
//@ ignore-wasm32
//@ error-pattern:location-add-overflow.rs

fn main() {
    let _: u8 = 255 + &1;
}