// --------------------------------------------------------------------------- // Copyright: (c) 2022 ff. Michael Amrhein (michael@adrhinum.de) // License: This program is part of a larger application. For license // details please read the file LICENSE.TXT provided together // with the application. // --------------------------------------------------------------------------- // $Source: tests/ui/derived_lhs_no_ref_unit.rs $ // $Revision: 2022-02-12T10:19:40+01:00 $ use quantities::prelude::*; #[quantity] #[unit(Flop, "f")] struct Foo {} #[quantity] #[ref_unit(Emil, "e")] #[unit(Milliemil, "me", 0.001, "0.001·e")] struct Bar {} #[quantity(Foo * Bar)] #[ref_unit(Bazoo, "b", "1·f·e")] #[unit(Millibazoo, "mb", 0.001, "0.001·b")] struct Baz {} fn main() {}