dtolnay/rust-quiz

Consider adding answer: The program is not UB but its output is unspecified

dtolnay opened this issue · 0 comments

This corresponds to the "The program is unspecified / implementation defined" answer choice on cppquiz.org which applies just as much to Rust. It would apply for example to the following Rust program.

fn main() {
    print!("{}", std::mem::size_of::<usize>());
}