Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions CoqOfRust/core/convert.v
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
}
*)
Module AsMut.
Class Trait (Self T : Set) : Set := {
Class Trait (Self : Set) {T : Set} : Set := {
as_mut : mut_ref Self -> mut_ref T;
}.
End AsMut.
Expand All @@ -55,13 +55,13 @@ where
}
*)
Module AsRef.
Class Trait (Self T : Set) : Set := {
Class Trait (Self : Set) {T : Set} : Set := {
as_ref : ref Self -> ref T;
}.
End AsRef.

Module Impl_AsRef_for_string.
Global Instance I : convert.AsRef.Trait string string := {
Global Instance I : convert.AsRef.Trait string (T := string) := {
as_ref self := self;
}.
End Impl_AsRef_for_string.
Expand Down
Loading