Skip to content

Compile error in examples/unit.rs #535

@nnethercote

Description

@nnethercote

cargo test --all-targets produces this compile error:

error[E0407]: method `is_valid` is not a member of trait `super::Conversion`
  --> examples/unit.rs:13:1
   |
13 | / unit! {
14 | |     system: uom::si;
15 | |     quantity: uom::si::length;
...  |
18 | | }
   | |_^ not a member of trait `super::Conversion`
   |
   = note: this error originates in the macro `unit` (in Nightly builds, run with -Z macro-backtrace for more info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions