Skip to content

Commit

Permalink
Updated UI tests to not have line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Jul 22, 2024
1 parent 477d9bf commit 11e5597
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ui/derive-invariant/helper-empty/expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: Cannot derive impl for `PositivePoint`
|
11 | #[derive(kani::Invariant)]
| #[derive(kani::Invariant)]
| ^^^^^^^^^^^^^^^
|
note: safety constraint in field `x` could not be parsed: expected attribute arguments in parentheses: #[safety_constraint(...)]
2 changes: 1 addition & 1 deletion tests/ui/derive-invariant/helper-no-expr/expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: Cannot derive impl for `PositivePoint`
|
11 | #[derive(kani::Invariant)]
| #[derive(kani::Invariant)]
| ^^^^^^^^^^^^^^^
|
note: safety constraint in field `x` could not be parsed: unexpected end of input, expected an expression
4 changes: 2 additions & 2 deletions tests/ui/derive-invariant/helper-wrong-expr/expected
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error[E0308]: mismatched types
|
14 | #[safety_constraint(x >= 0)]
| #[safety_constraint(x >= 0)]
| ^ expected `&i32`, found integer
|
help: consider dereferencing the borrow
|
14 | #[safety_constraint(*x >= 0)]
| #[safety_constraint(*x >= 0)]
|

0 comments on commit 11e5597

Please sign in to comment.