32 lines
864 B
Plaintext
32 lines
864 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/call_method_on_inherent_impl_ref.rs:18:13
|
|
|
|
|
LL | let x = my_foo();
|
|
| ^
|
|
LL |
|
|
LL | x.my_debug();
|
|
| - type must be known at this point
|
|
|
|
|
help: consider giving `x` an explicit type
|
|
|
|
|
LL | let x: /* Type */ = my_foo();
|
|
| ++++++++++++
|
|
|
|
error[E0282]: type annotations needed for `&_`
|
|
--> $DIR/call_method_on_inherent_impl_ref.rs:28:13
|
|
|
|
|
LL | let x = &my_bar();
|
|
| ^
|
|
LL |
|
|
LL | x.my_debug();
|
|
| -------- type must be known at this point
|
|
|
|
|
help: consider giving `x` an explicit type, where the placeholders `_` are specified
|
|
|
|
|
LL | let x: &_ = &my_bar();
|
|
| ++++
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|