error[E0277]: cannot add `&symplex::units::Length` to `&symplex::units::Mass`
--> tests/ui/add_mass_length.rs:8:19
|
8 | let _bad = &m + &l;
| ^ no implementation for `&symplex::units::Mass + &symplex::units::Length`
|
= help: the trait `std::ops::Add<&symplex::units::Length>` is not implemented for `&symplex::units::Mass`
help: the following other types implement trait `std::ops::Add<Rhs>`
--> src/units/si.rs
|
| impl ops::Add for $name {
| ^^^^^^^^^^^^^^^^^^^^^^^ `symplex::units::Mass` implements `std::ops::Add`
...
| impl ops::Add<&$name> for &$name {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&symplex::units::Mass` implements `std::ops::Add`
...
| impl ops::Add<$name> for &$name {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&symplex::units::Mass` implements `std::ops::Add<symplex::units::Mass>`
...
| impl ops::Add<&$name> for $name {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `symplex::units::Mass` implements `std::ops::Add<&symplex::units::Mass>`
...
| / define_quantity!(
| | /// Mass \[kg\].
| | Mass, MassDim, "Mass", "kg"
| | );
| |_- in this macro invocation
= note: this error originates in the macro `define_quantity` (in Nightly builds, run with -Z macro-backtrace for more info)