Skip to content

does the note for E0369 need to repeat the entire span? #39650

Closed
@durka

Description

@durka

I got this error (I missed a ?):

error[E0369]: binary operation `!=` cannot be applied to type `std::result::Result<flow::EventContour, flow::Error>`
   --> crates/front/cli/src/lib.rs:245:23
    |
245 |                 while found.run(ParkState::None, &self.tx, CLIComms) != flow::EventContour::Finishing {}
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: an implementation of `std::cmp::PartialEq` might be missing for `std::result::Result<flow::EventContour, flow::Error>`
   --> crates/front/cli/src/lib.rs:245:23
    |
245 |                 while found.run(ParkState::None, &self.tx, CLIComms) != flow::EventContour::Finishing {}
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

There's no information gained by printing the span again. Maybe there is some situation where it isn't the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions