1 2 3 4 5 6 7 8 9 10
fn f<T>(x: T) -> @T { @x //~ ERROR value may contain borrowed pointers } fn g<T:'static>(x: T) -> @T { @x // ok } fn main() {}