Skip to content

Instantly share code, notes, and snippets.

@aep
Created November 30, 2018 18:09
Show Gist options
  • Save aep/39c590ef51d3a8dc173eed697bbeef7e to your computer and use it in GitHub Desktop.
Save aep/39c590ef51d3a8dc173eed697bbeef7e to your computer and use it in GitHub Desktop.
181 | let sock = UdpSocket::bind(&"0.0.0.0:0".parse().unwrap()).map_err(|e| Error::Io(e))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `endpoint::Endpoint<_>`, the trait `std::marker::Sized` is not implemented for `(dyn endpoint::Driver + 'static)`
= note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
= note: required because it appears within the type `endpoint::Endpoint<_>`
= note: required because of the requirements on the impl of `std::ops::Try` for `std::result::Result<endpoint::Endpoint<_>, error::Error>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment