mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
18 lines
459 B
Plaintext
18 lines
459 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/call_method_on_inherent_impl.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: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|