Skip to content

Commit

Permalink
Add a Sized bound to the Comonoid trait
Browse files Browse the repository at this point in the history
Otherwise the type `(Self, Self)` is not well-formed, as tuples may not
have unsized members. See rust-lang/rust#33242 for details.
  • Loading branch information
nikomatsakis committed Aug 26, 2016
1 parent e69cead commit b8588fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// implementation of [`Drop`](http://doc.rust-lang.org/std/ops/trait.Drop.html)
/// and [`Clone`](http://doc.rust-lang.org/std/clone/trait.Clone.html),
/// respectively.
pub trait Comonoid {
pub trait Comonoid: Sized {
/// The dual to the monoidal unit.
fn counit(self) -> ();
/// The dual to the monoidal multiplication.
Expand Down

0 comments on commit b8588fb

Please sign in to comment.