✓
Passing This code compiles and runs correctly.
Code
// Test: String ownership transitions and append
import std/string
import std/io
std/string:from-page(text: "hello")
| ok s |> std/string:take(s): owned |> std/string:append(s: owned, text: " world")
| ok |> std/string:read(s: owned): text |> std/io:print.ln("{{ text:s }}") |> std/string:free(s: owned)
| err _ |> std/string:free(s: owned)
| err _ |> _
Actual
hello world
Expected output
hello world
Flows
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "hello")
Test Configuration
MUST_RUN