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

9 lines
125 B
Rust

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