Skip to content

Instantly share code, notes, and snippets.

@aep
Created November 30, 2018 18:17
Show Gist options
  • Save aep/940935fefae4a67bbbfc067665b9850d to your computer and use it in GitHub Desktop.
Save aep/940935fefae4a67bbbfc067665b9850d to your computer and use it in GitHub Desktop.
aep@stark: ~/proj/devguard/carrier2 RUST_LOG=carrier cargo run
Compiling carrier-core v0.8.0 (/home/aep/proj/devguard/carrier2)
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/main.rs:96:18
|
96 | let mut ep = osaka::sync!(ep).run();
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `endpoint::Endpoint<PublisherDriver>`, 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<PublisherDriver>`
= note: required by `std::result::Result`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/main.rs:96:18
|
96 | let mut ep = osaka::sync!(ep).run();
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `endpoint::Endpoint<PublisherDriver>`, 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<PublisherDriver>`
= note: required by `std::ops::Try::into_result`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/main.rs:96:18
|
96 | let mut ep = osaka::sync!(ep).run();
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `endpoint::Endpoint<PublisherDriver>`, 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<PublisherDriver>`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:61:16
|
61 | pub fn run(mut self) -> Result<(), Error> {
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `endpoint::Endpoint<D>`, 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<D>`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:217:20
|
217 | return Ok(Endpoint::new(noise, identity, sock, record.addr));
| ^^ 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 by `serde::export::Ok`
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:217:20
|
217 | return Ok(Endpoint::new(noise, identity, sock, record.addr));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 by `std::result::Result`
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:207:17
|
207 | sock.send_to(&pkt, &record.addr)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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>`
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:181:24
|
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>`
error[E0277]: the size for values of type `(dyn endpoint::Driver + 'static)` cannot be known at compilation time
--> src/endpoint.rs:178:36
|
178 | let (mut noise, pkt) = noise::initiate(Some(&record.x), &self.secret, timestamp)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 by `std::ops::Try::from_error`
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `carrier-core`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment