Make struct: work at the REPL

Closes PR 11669