MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / main

Function main

0b_traits/rust/defaults.rs:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31fn main() {
32 let d1 = D::new(1, 2, None);
33 let d2 = D {
34 x: 1,
35 y: 2,
36 ..D::default()
37 };
38 assert_eq!(d1, d2);
39 println!("{:?} {:?}", d1, d2);
40 println!("{:?}", d1 + d2);
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected