about summary refs log tree commit diff
path: root/tests/ui/lint/lint-overflowing-int-136675.rs
blob: 616531519a62f61f91662f3fef5d3ef5cf2aa3db (plain)
1
2
3
4
fn main() {
    if let -129 = 0i8 {} //~ ERROR literal out of range for `i8`
    let x: i8 = -129; //~ ERROR literal out of range for `i8`
}