summaryrefslogtreecommitdiff
path: root/examples/10-option/output/rust/src/lib.rs
blob: 7a41573babc11ee907086821e285f4a021653585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod point;

#[cfg(test)]
mod test {
    use super::point::{Line, Point};

    #[test]
    fn can_create_line_directly() {
        let line = Line {
            start: Some(Point { x: 10, y: 25 }),
            length: Some(42),
        };
    }
}