Closed
Description
When calling a method bar
that takes an argument Into<Foo>
with bar(foo.into())
, the type system can't figure out the type for the argument. Suggest removing the .into()
call.
error[E0283]: type annotations required: cannot resolve `_: std::convert::Into<syntax_pos::MultiSpan>`
--> libsyntax_ext/concat.rs:80:26
|
80 | let mut err = cx.struct_span_err(
| ^^^^^^^^^^^^^^^
81 | b_pos.into(),
| ------- help: remove this call
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that needs small tweaks.Relevant to the compiler team, which will review and decide on the PR/issue.