Closed
Description
error[E0277]: the trait bound `syntax_pos::MultiSpan: std::convert::From<&syntax_pos::span_encoding::Span>` is not satisfied
--> src/librustc_typeck/astconv.rs:726:42
|
726 | ... tcx.sess.delay_span_bug(visitor.0.iter().next().unwrap(), "asdf");
| ^^^^^^^^^^^^^^ the trait `std::convert::From<&syntax_pos::span_encoding::Span>` is not implemented for `syntax_pos::MultiSpan`
|
= help: the following implementations were found:
<syntax_pos::MultiSpan as std::convert::From<std::vec::Vec<syntax_pos::span_encoding::Span>>>
<syntax_pos::MultiSpan as std::convert::From<syntax_pos::span_encoding::Span>>
= note: required because of the requirements on the impl of `std::convert::Into<syntax_pos::MultiSpan>` for `&syntax_pos::span_encoding::Span`
Suggest *foo
when <&foo as &Foo>
, Into<Bar>
is expected and Bar: From<Foo>
is implemented.
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.