blob: 23b21cf4e615d62e6810b76c85f8b87467e5f5d3 [file] [log] [blame]
fn foo(_: &'static u32) {}
fn unpromotable<T>(t: T) -> T { t }
fn main() {
foo(&unpromotable(5u32));
}
//~^^ ERROR borrowed value does not live long enough