Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrannan committed Nov 28, 2023
1 parent ddec7f8 commit 02773bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl<T> std::option::Option<T> {
#[requires(x.is_some())]
fn test(x: Option<i32>) -> i32 {
// Following error is due to stub encoding of invalid external spec for function `unwrap()`
x.unwrap() // ~ ERROR precondition of pure function call might not hold
x.unwrap() //~ ERROR precondition of pure function call might not hold
}

fn main() { }

0 comments on commit 02773bf

Please sign in to comment.