Skip to content

Commit

Permalink
add regression test for misleading error message
Browse files Browse the repository at this point in the history
addresses #387 (comment)
  • Loading branch information
utaal committed Aug 16, 2023
1 parent b7be992 commit 5c40584
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/rust_verify_test/tests/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,3 +666,11 @@ test_verify_one_file! {
assert!(err.errors[0].rendered.contains("let tracked x: i32 = s;"));
}
}

test_verify_one_file! {
#[test] test_unwrapped_tracked_wrong_span_387_discussioncomment_6680621 verus_code! {
exec fn f(foo: &mut usize) {
let tracked tracked_foo = Tracked(foo);
}
} => Err(err) => { err.errors[0].rendered.contains("let tracked tracked_foo = Tracked(foo);"); }
}

0 comments on commit 5c40584

Please sign in to comment.