Does "ill-formed, no diagnostic required" exist in Rust?

⚓ Rust    📅 2026-04-19    👤 surdeus    👁️ 3      

surdeus

Hello everyone!

The C++ standard defines certain programming mistakes (such as defining a function more than one time) to cause a program to be "ill-formed, no diagnostic required", which means if the program is compiled, it will have undefined behavior from the start of execution (not when non-compliant part is reached). I wonder, is there anything similar in Rust?

3 posts - 3 participants

Read full topic

🏷️ Rust_feed