Skip to content

Commit

Permalink
add regression test, fixes #1322, external_body const no longer panic…
Browse files Browse the repository at this point in the history
…s verus
  • Loading branch information
utaal committed Jan 22, 2025
1 parent f172d14 commit edcff70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/rust_verify_test/tests/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,10 @@ test_verify_one_file! {
}
} => Ok(())
}

test_verify_one_file! {
#[test] allow_external_body_const_regression_1322 verus_code! {
#[verifier(external_body)]
const A: usize = unimplemented!();
} => Err(err) => assert_rust_error_msg(err, "evaluation of constant value failed")
}

0 comments on commit edcff70

Please sign in to comment.