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

Function inferred_bindings_execute

tests/integration/hll_conformance.rs:132–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132// --- Canonical struct literals ---
133
134#[test]
135fn named_and_contextual_literals_execute() {
136 // Named literal (reordered fields) and a contextual literal from the
137 // annotation. 1 + 2 + 3 + 4 = 10.
138 assert_exit(
139 r#"
140struct Point {
141 x: i32
142 y: i32
143}
144
145main: () -> i32 {
146 named := Point { .y = 2, .x = 1 }
147 contextual: Point = { .x = 3, .y = 4 }
148 return named.x + named.y + contextual.x + contextual.y

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected