Consider adding answer: The program is not UB but its output is unspecified
dtolnay opened this issue · 0 comments
dtolnay commented
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>());
}