You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
type NanoSecond = u64;
|
|
type Inch = u64;
|
|
type U64 = u64;
|
|
|
|
fn main() {
|
|
let nanoseconds: NanoSecond = 5 as U64;
|
|
let inches: Inch = 2 as U64;
|
|
|
|
println!(
|
|
"{} nanoseconds + {} inches = {} unit?",
|
|
nanoseconds,
|
|
inches,
|
|
nanoseconds + inches
|
|
);
|
|
}
|