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

8 lines
117 B
Rust

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