#![feature(box_syntax)] fn id(x: T) -> T { x } fn f(_: T) {} fn main() { let x: Box<_> = box 3; f(x); let x = &id(3); //~ ERROR temporary value dropped while borrowed f(x); }