blob: ee5d1c0b2f16b4b7060d0047a63d2f0f212e1cfd [file]
error[E0282]: type annotations needed for `&_`
--> $DIR/issue-12187-1.rs:6:9
|
LL | let &v = new();
| ^^ ----- type must be known at this point
|
help: consider giving this pattern a type, where the type for type parameter `T` is specified
|
LL | let &v: &_ = new();
| ++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0282`.