rust/tests/ui/parser/issue-12187-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
116 B
Rust
Raw Normal View History

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