summaryrefslogtreecommitdiff
path: root/examples/06-custom-code/output/rust/src/main.rs
blob: e30443e9883fc44a2dcd17912fd4a5e17cdb9c48 (plain)
1
2
3
4
5
6
7
8
mod shapes;

use shapes::Square;

fn main() {
    let square = Square { width: 10 };
    assert!(square.area() == 100);
}