>>107255928
unwinding/abort details not withstanding, this is not that different from doing this in C:
assert(never_null_value);
so the major mistake here is assuming something is a guaranteed variant, when it isn't. but still, there is the sub-mistake, as i mentioned in another comment, of not attaching useful context just in case the variant didn't hold (in the form of `.expect("some useful message")`).
incidentally, rust allows you to attach messages to actual asserts:
let v: i32 = ...; // some external value which could be anything
assert!(v > 1, "am i a retard?!");