blob: e857b906efa7be3576b7d620dd4c517e8ef28775 [file] [log] [blame]
fn id<T>(x: T) -> T { x }
const FOO: usize = 3;
fn foo() -> &'static usize { &id(FOO) }
//~^ ERROR: borrowed value does not live long enough
fn main() {
}