]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-int-sign.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-int-sign.rs
1 fn main() {
2 let x: &'static bool = &(5_i32.is_negative());
3 //~^ ERROR temporary value dropped while borrowed
4 let y: &'static bool = &(5_i32.is_positive());
5 //~^ ERROR temporary value dropped while borrowed
6 }