Skip to content

Commit c8caa64

Browse files
authored
Merge pull request #2 from nikomatsakis/master
Add a `Sized` bound to the `Comonoid` trait
2 parents e69cead + b8588fb commit c8caa64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// implementation of [`Drop`](http://doc.rust-lang.org/std/ops/trait.Drop.html)
1717
/// and [`Clone`](http://doc.rust-lang.org/std/clone/trait.Clone.html),
1818
/// respectively.
19-
pub trait Comonoid {
19+
pub trait Comonoid: Sized {
2020
/// The dual to the monoidal unit.
2121
fn counit(self) -> ();
2222
/// The dual to the monoidal multiplication.

0 commit comments

Comments
 (0)