035 borrow requires live handle

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

use() ran for 'result_1'
honest borrow ok, held=2
forged refused: 'h' wants a live <found> — 'result_99' names nothing the session holds. Mint one through a verb whose signature ends '-> <found!>'
wrong-tag refused: 'h' wants a live <found> — 'other_1' is a <known>. Mint one through a verb whose signature ends '-> <found!>'
use() ran for 'result_1'
reuse ok, held=2
drop() ran for 'result_1'
drop ok, held=1

Expected output

use() ran for 'result_1'
honest borrow ok, held=2
forged refused: 'h' wants a live <found> — 'result_99' names nothing the session holds. Mint one through a verb whose signature ends '-> <found!>'
wrong-tag refused: 'h' wants a live <found> — 'other_1' is a <known>. Mint one through a verb whose signature ends '-> <found!>'
use() ran for 'result_1'
reuse ok, held=2
drop() ran for 'result_1'
drop ok, held=1

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "demo", source: search(1) other(1) use(1) drop(1))
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: "search(q: \"x\")", scope: "demo", budget: 100, handle_pool: &bridge_pool, auto_discharge: false)

Test Configuration

MUST_RUN