MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / chained_call_destructure

Function chained_call_destructure

tests/integration/struct_destructuring.rs:152–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151"#,
152 );
153}
154
155#[test]
156fn destructured_field_used_in_arithmetic() {
157 compile_ok(
158 r#"
159dims: () -> { w: i32, h: i32 } { return { .w = 6, .h = 7 } }
160main: () -> i32 {
161 { w: i32, h: i32 } = dims()
162 return w * h
163}
164"#,

Callers

nothing calls this directly

Calls 1

compile_okFunction · 0.70

Tested by

no test coverage detected