summaryrefslogtreecommitdiff
path: root/examples/13-custom-code/output/rust/src/lib.rs
blob: 1825d7263782eb18c01c2f8d94133446a9fcd30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
mod shapes;

#[cfg(test)]
mod test {
    use super::shapes::Square;

    #[test]
    fn can_use_custom_code() {
        let square = Square { width: 10 };
        assert_eq!(square.area(), 100);
    }
}