Skip to content

Typo on error E0369 description text #68008

Closed
@FSciammarella

Description

@FSciammarella

Got this error message when trying to compile a crate using rustc 1.42.0-nightly (8597644 2020-01-07).

error[E0369]: cannot substract `systemstat::ByteSize` from `systemstat::ByteSize`
  --> /home/felipe-wsl/.cargo/registry/src/github.com-1ecc6299db9ec823/hegemon-0.1.0/src/providers/memory.rs:37:44         |
37 |                         Some((memory.total - memory.free).as_usize() as f64)
   |                               ------------ ^ ----------- systemstat::ByteSize
   |                               |
   |                               systemstat::ByteSize
   |
   = note: an implementation of `std::ops::Sub` might be missing for `systemstat::ByteSize`

The text reads substract instead of subtract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions