Closed
Description
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
Labels
Area: Messages for errors, warnings, and lintsCategory: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.