rust/src/test/ui/issues/issue-12187-2.rs
2018-12-25 21:08:33 -07:00

9 lines
124 B
Rust

fn new<'r, T>() -> &'r T {
panic!()
}
fn main() {
let &v = new();
//~^ ERROR type annotations needed [E0282]
}