Skip to content

Commit 564bdac

Browse files
committed
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.
1 parent de1b394 commit 564bdac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/run-fail/unwind-alt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ fn test_box() {
55
}
66
fn test_str() {
77
let res = alt false { true { "happy" } };
8+
assert res == "happy";
89
}
910
fn main() {
1011
test_box();

0 commit comments

Comments
 (0)