2019-06-01 16:47:15 -05:00
|
|
|
error[E0282]: type annotations needed for `&T`
|
2022-02-14 06:25:26 -06:00
|
|
|
--> $DIR/issue-12187-1.rs:6:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let &v = new();
|
2022-02-14 06:25:26 -06:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: consider giving this pattern a type, where the placeholders `_` are specified
|
|
|
|
|
|
|
|
|
LL | let &v: &T = new();
|
|
|
|
| ++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|