rust/tests/ui/issues/issue-12187-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
376 B
Plaintext
Raw Normal View History

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