Test MDX File V12
RustMemoryLab Demo
Section titled “RustMemoryLab Demo”Rust Memory Lab
Drag a Rust type onto the stack. Owned types — Box, String, Vec — also claim space on the heap.
MutLab Demo
Section titled “MutLab Demo”Rust Mutability Lab
Toggle mut on the binding and on the reference. To mutate through r, you need both.
ThreadLab Demo
Section titled “ThreadLab Demo”Rust Thread Lab
What can cross the thread boundary? Three walls — 'static, Send, and Mutex — and how to cross each.
BugHuntLab Demo
Section titled “BugHuntLab Demo”Bug Hunt
C++The code below should produce the output shown, but bugs are hiding in it. Drag a ladybird onto each bug you spot. No compiler needed.
Drag a ladybird onto a suspicious line.
Bug jar
Drag onto a suspect spot in the code. A wrong drop is a false alarm.
Intended output
Print a greeting, then count from 1 to 5 on one line.
RustBugHuntLab Demo
Section titled “RustBugHuntLab Demo”Rust Bug Hunt
RustThe code below should produce the output shown, but bugs are hiding in it. Drag a ladybird onto each bug you spot. No compiler needed.
Drag a ladybird onto a suspicious line.
Bug jar
Drag onto a suspect spot in the code. A wrong drop is a false alarm.
Intended output
Print a greeting, then double a number and print the result.
© 2026 Derek Molloy, Dublin City University. All rights reserved.