rust/tests/ui/issues/issue-12187-2.rs
2023-01-11 09:32:08 +00:00

8 lines
116 B
Rust

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