Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on nightly #6

Closed
janderholm opened this issue May 14, 2017 · 1 comment
Closed

Does not build on nightly #6

janderholm opened this issue May 14, 2017 · 1 comment

Comments

@janderholm
Copy link

Example does not build on current nightly.

error[E0437]: type `Err` is not a member of trait `convert::TryFrom`
  --> src/packet.rs:72:5
   |
72 |     type Err = Error;
   |     ^^^^^^^^^^^^^^^^^ not a member of trait `convert::TryFrom`

error[E0046]: not all trait items implemented, missing: `Error`
   --> src/packet.rs:71:1
    |
71  | / impl<T: ReadBytesExt> convert::TryFrom<T> for Packet {
72  | |     type Err = Error;
73  | |     fn try_from(mut rdr: T) -> Result<Packet> {
74  | |         let li_vn_mode = rdr.read_u8()?;
...   |
116 | |     }
117 | | }
    | |_^ missing `Error` in implementation
    |
    = note: `Error` from trait: `type Error;`

error: aborting due to previous error

error: Could not compile `ntp`.
@JeffBelgum
Copy link
Owner

JeffBelgum commented Oct 21, 2017

Fixed by #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants