You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a warning (which will be eventually be an error) when compiling on nightly:
src/lib.rs:53:3:53:48 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
src/lib.rs:53fnnew(Sender<Event>) -> Result<Self,Error>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:53:3:53:48 help: run `rustc --explain E0277` to see a detailed explanation
src/lib.rs:53:3:53:48 note: `Self` does not have a constant size known at compile-time
src/lib.rs:53fnnew(Sender<Event>) -> Result<Self,Error>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:53:3:53:48 note: this warning results from recent bug fixes and clarifications; it will become a HARDERRORin the next release.SeeRFC1214 for details.src/lib.rs:53fnnew(Sender<Event>) -> Result<Self,Error>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:53:3:53:48 note: required by `core::result::Result`
src/lib.rs:53fnnew(Sender<Event>) -> Result<Self,Error>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
We can probably just fix this by adding a Self bound to Watcher, i.e. trait Watcher: Self. It's only ever going to be implemented for sized types, AFAIK.
There is a warning (which will be eventually be an error) when compiling on nightly:
The text was updated successfully, but these errors were encountered: