Type alias

Replace empty struct with type alias

type Kilometers = i32;
 
let x: i32 = 5;
let y: Kilometers = 5;
 
println!("x + y = {}", x + y);

Types - The Rust Reference