Update examples/test to semi-modern Rust