rust/src/test/ui/consts/const-int-sign.rs
2018-12-25 21:08:33 -07:00

5 lines
188 B
Rust

fn main() {
let x: &'static bool = &(5_i32.is_negative()); //~ ERROR does not live long enough
let y: &'static bool = &(5_i32.is_positive()); //~ ERROR does not live long enough
}