$ rustup run nightly rustc --version
rustc 1.24.0-nightly (7eb64b86c 2017-12-20)
$ uname -rvm
4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64
$ lsb_release -sd
Ubuntu 16.04.3 LTS
$ rustup run nightly cargo build
Compiling modbus_server v0.1.0 (file:///home/kubo39/dev/rust/modbus/tokio-modbus)
warning: unused imports: `BoxFuture`, `Sink`
--> src/bin/main.rs:19:31
|
19 | use futures::{future, Future, BoxFuture,Stream,Sink};
| ^^^^^^^^^ ^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused import: `std::thread`
--> src/bin/main.rs:20:5
|
20 | use std::thread;
| ^^^^^^^^^^^
warning: unused import: `std::sync::mpsc::channel`
--> src/bin/main.rs:21:5
|
21 | use std::sync::mpsc::channel;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `ErrorKind`, `Read`, `Write`
--> src/bin/main.rs:23:21
|
23 | use std::io::{self, ErrorKind, Write,Read};
| ^^^^^^^^^ ^^^^^ ^^^^
warning: use of deprecated item 'futures::BoxFuture': removed without replacement, recommended to use a local extension trait or function if needed, more details in https://github.com/alexcrichton/futures-rs/issues/228
--> src/bin/main.rs:19:5
|
19 | use futures::{future, Future, BoxFuture,Stream,Sink};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
error[E0599]: no method named `decode` found for type `docopt::Docopt` in the current scope
--> src/bin/main.rs:79:25
|
79 | .and_then(|d| d.decode())
| ^^^^^^
error: aborting due to previous error
error: Could not compile `modbus_server`.
To learn more, run the command again with --verbose.
My environments
Actual Output