// --------------------------------------------------------------------------- // 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_res_no_ref_unit.rs $ // $Revision: 2022-02-12T10:19:40+01:00 $ use quantities::prelude::*; #[quantity] #[ref_unit(Flop, "f")] #[unit(Kiloflop, "kf", 1000., "1000·f")] struct Foo {} #[quantity] #[ref_unit(Emil, "e")] #[unit(Milliemil, "me", 0.001, "0.001·e")] struct Bar {} #[quantity(Foo * Bar)] #[unit(Bazoo, "b", "1·f·e")] struct Baz {} fn main() {}