pajowu / signal-backup-decode

Decode Signal Backups
GNU General Public License v3.0
212 stars 17 forks source link

Failed to compile (error[E0580]: main function has wrong type) #5

Closed teneri66 closed 6 years ago

teneri66 commented 6 years ago
error[E0580]: main function has wrong type
   --> src/main.rs:315:1
    |
315 | / fn main() -> Result<()> {
316 | |     let matches = clap_app!(myapp =>
317 | |         (name: crate_name!())
318 | |         (version: crate_version!())
...   |
429 | |     Ok(())
430 | | }
    | |_^ expected (), found enum `std::result::Result`
    |
    = note: expected type `fn()`
               found type `fn() -> std::result::Result<(), errors::Error>`

error: aborting due to previous error

error: failed to compile `signal-backup-decode v0.1.2`, intermediate artifacts can be found at `/tmp/cargo-install.Pr4b2E2f43ce`

Caused by:
  Could not compile `signal-backup-decode`.

To learn more, run the command again with --verbose.
tmplt commented 6 years ago

You need to update to v1.26:

$ rustup update stable
$ rustup default stable
$ rustc --version

or your system equivalent.

pajowu commented 6 years ago

As @Tmplt mentioned, this create needs rust v1.26 or more