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