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

13 lines
383 B
Plaintext
Raw Normal View History

2019-06-01 16:47:15 -05:00
error[E0282]: type annotations needed for `&T`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-12187-2.rs:6:10
|
2018-02-22 18:42:32 -06:00
LL | let &v = new();
| -^
| ||
2018-07-18 14:35:20 -05: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 08:59:40 -06:00
For more information about this error, try `rustc --explain E0282`.