Cargo version: 1.53.0
(also tried with 1.55.0-nightly
)
Rustc version: 1.53.0
(also tried with 1.55.0-nightly
)
Crate version: 0.11.4
When it compile the crate it throw these errors:
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:87:13
|
87 | Err(nix::Error::Sys(Errno::EEXIST)) => return Err(ShmemError::MappingIdExists),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:88:13
|
88 | Err(nix::Error::Sys(e)) => return Err(ShmemError::MapCreateFailed(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:103:13
|
103 | Err(nix::Error::Sys(e)) => return Err(ShmemError::UnknownOsError(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:119:13
|
119 | Err(nix::Error::Sys(e)) => return Err(ShmemError::MapCreateFailed(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:135:13
|
135 | Err(nix::Error::Sys(e)) => return Err(ShmemError::MapOpenFailed(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:150:13
|
150 | Err(nix::Error::Sys(e)) => return Err(ShmemError::MapOpenFailed(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
--> /home/zacharie/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:166:13
|
166 | Err(nix::Error::Sys(e)) => return Err(ShmemError::MapOpenFailed(e as u32)),
| ^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
error: aborting due to 7 previous errors