1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
mod line; mod point; #[cfg(test)] mod test { use super::line::Line; use super::point::Point; #[test] fn can_construct_line() { let start = Point { x: 10, y: 25 }; let end = Point { x: 10, y: 25 }; let line = Line { start, end }; } }