Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
parno committed Feb 13, 2024
1 parent 54bf294 commit f50f5d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/verus-consistency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,14 @@ trait KeyTrait: Sized {
fn zero_spec() -> Self where Self: std::marker::Sized;
}
spec fn map(f: spec_fn(A) -> B) {
1
}
spec fn adder(x: int) -> spec_fn(int) -> int {
|y: int| x + y
}
}
"#;

Expand All @@ -809,6 +817,14 @@ trait KeyTrait: Sized {
fn zero_spec() -> Self where Self: std::marker::Sized;
}
spec fn map(f: spec_fn(A) -> B) {
1
}
spec fn adder(x: int) -> spec_fn(int) -> int {
|y: int| x + y
}
} // verus!
"###);
}
Expand Down

0 comments on commit f50f5d4

Please sign in to comment.