Skip to content

Commit

Permalink
Add some impls for char
Browse files Browse the repository at this point in the history
  • Loading branch information
jhjourdan committed Feb 27, 2025
1 parent 479d09b commit 9fb68c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions creusot-contracts/src/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub mod collections {
pub mod hash_map;
pub mod hash_set;
}
pub mod char;
pub mod cmp;
pub mod default;
pub mod deque;
Expand Down
2 changes: 1 addition & 1 deletion tests/should_fail/bug/603.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `VecMap<K, V>: creusot_contracts::Default` is not
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
and 23 others
and 24 others

error: error above

Expand Down
8 changes: 4 additions & 4 deletions tests/should_fail/diagnostics/view_unimplemented.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ error[E0277]: Cannot take the model of `S`
*mut T
[T; N]
[T]
char
creusot_contracts::GhostBox<T>
creusot_contracts::Snapshot<T>
and 41 others
and 42 others

error[E0277]: Cannot take the model of `S`
--> view_unimplemented.rs:14:25
Expand All @@ -57,9 +57,9 @@ error[E0277]: Cannot take the model of `S`
*mut T
[T; N]
[T]
char
creusot_contracts::GhostBox<T>
creusot_contracts::Snapshot<T>
and 41 others
and 42 others

error: aborting due to 3 previous errors

Expand Down

0 comments on commit 9fb68c5

Please sign in to comment.