rust/src/test/ui/issues/issue-12187-2.stderr

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

13 lines
383 B
Plaintext
Raw Normal View History

2019-06-01 21:47:15 +00:00
error[E0282]: type annotations needed for `&T`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-12187-2.rs:6:10
|
2018-02-23 00:42:32 +00:00
LL | let &v = new();
| -^
| ||
2018-07-18 19:35:20 +00:00
| |cannot infer type
| consider giving this pattern the explicit type `&T`, with the type parameters specified
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0282`.