Add an assert to run-fail/unwind-alt
Jesse reported not being able to reproduce this without the assert. May have to do with optimtizations.
This commit is contained in:
parent
de1b394c32
commit
564bdacece
@ -5,6 +5,7 @@ fn test_box() {
|
||||
}
|
||||
fn test_str() {
|
||||
let res = alt false { true { "happy" } };
|
||||
assert res == "happy";
|
||||
}
|
||||
fn main() {
|
||||
test_box();
|
||||
|
Loading…
x
Reference in New Issue
Block a user