blob: 24b9b3123e12e4a4afd2e0a59c6a0e502f4b17d6 [file] [log] [blame]
//@ aux-build:stability.rs
extern crate stability;
use stability::foo;
fn main() {
let _: &'static u32 = &foo(); //~ ERROR temporary value dropped while borrowed
let _x: &'static u32 = &foo(); //~ ERROR temporary value dropped while borrowed
}