mod point; #[cfg(test)] mod test { use std::sync::Arc; use super::point::{Line, Point}; #[test] fn line() { let point = Arc::new(Point { x: 10, y: 25 }); let line = Line { start: Arc::clone(&point), end: point }; assert_eq!(line.start.x, 10); } }