To verify this, I used the following shell code with the attached tarball, which contains 3 Rust programs each using features introduced in 1.61, 1.62 and 1.63 respectively:
tar -xaf programs.tar.xz && cd programs
rustc-1.62 61.rs || echo "error: couldn't compile a 1.61 compatible program"
rustc-1.62 62.rs || echo "error: couldn't compile a 1.62 compatible program"
! rustc-1.62 63.rs 2> /dev/null || echo "error: shouldn't be able to compile a 1.63 compatible program"
This works as expected on a fresh Jammy container.
To verify this, I used the following shell code with the attached tarball, which contains 3 Rust programs each using features introduced in 1.61, 1.62 and 1.63 respectively:
tar -xaf programs.tar.xz && cd programs
rustc-1.62 61.rs || echo "error: couldn't compile a 1.61 compatible program"
rustc-1.62 62.rs || echo "error: couldn't compile a 1.62 compatible program"
! rustc-1.62 63.rs 2> /dev/null || echo "error: shouldn't be able to compile a 1.63 compatible program"
This works as expected on a fresh Jammy container.