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

Function array_of_struct_element_place

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

Source from the content-addressed store, hash-verified

106 return n + @p
107}
108"#,
109 42,
110 );
111}
112
113#[test]
114fn inferred_struct_pointer_binding() {
115 // `:=` over new(T) infers T*; field access through it works.
116 assert_exit(
117 r#"
118struct Box {
119 value: i32
120}
121
122main: () -> i32 {
123 b := new(Box)
124 b.value = 99
125 return b.value
126}
127"#,
128 99,
129 );
130}

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected