rust/tests/ui/issues/issue-12187-1.rs

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

9 lines
117 B
Rust
Raw Normal View History

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