Compiling omp-spt v0.2.0 (C:\Users\decid\Documents\projects\omp-spt\tools\omp-spt) error: expected pattern, found `let` --> src\history_omp.rs:32:5 | 32 | let mut captured_env = crate::digest_omp::SessionEnvArgs::default(); | ^^^ | help: remove the unnecessary `let` keyword | 32 - let mut captured_env = crate::digest_omp::SessionEnvArgs::default(); 32 + mut captured_env = crate::digest_omp::SessionEnvArgs::default(); | error: expected one of `=>`, `@`, `if`, or `|`, found `=` --> src\history_omp.rs:32:26 | 32 | let mut captured_env = crate::digest_omp::SessionEnvArgs::default(); | ^ | | | expected one of `=>`, `@`, `if`, or `|` | help: use a fat arrow to start a match arm: `=>` error: `match` arm body without braces --> src\history_omp.rs:32:28 | 32 | let mut captured_env = crate::digest_omp::SessionEnvArgs::default(); | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this statement is not surrounded by a body | | | while parsing the `match` arm starting here | help: replace `;` with `,` to end a `match` arm expression | 32 - let mut captured_env = crate::digest_omp::SessionEnvArgs::default(); 32 + let mut captured_env = crate::digest_omp::SessionEnvArgs::default(), | error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` --> src\history_omp.rs:40:30 | 40 | "--captured-env" => { | ^^ expected one of `.`, `;`, `?`, `}`, or an operator | help: you might have meant to write a "greater than or equal to" comparison | 40 - "--captured-env" => { 40 + "--captured-env" >= { | error[E0425]: cannot find value `captured_env` in this scope --> src\history_omp.rs:63:23 | 63 | let session_env = captured_env.resolve(); | ^^^^^^^^^^^^ not found in this scope error: implementation of `FnMut` is not general enough --> src\digest_omp.rs:235:9 | 235 | self.resolve_with(std::env::var_os) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnMut` is not general enough | = note: `fn(&'2 str) -> Option {var_os::<&'2 str>}` must implement `FnMut<(&'1 str,)>`, for any lifetime `'1`... = note: ...but it actually implements `FnMut<(&'2 str,)>`, for some specific lifetime `'2` error: implementation of `FnOnce` is not general enough --> src\digest_omp.rs:235:9 | 235 | self.resolve_with(std::env::var_os) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough | = note: `fn(&'2 str) -> Option {var_os::<&'2 str>}` must implement `FnOnce<(&'1 str,)>`, for any lifetime `'1`... = note: ...but it actually implements `FnOnce<(&'2 str,)>`, for some specific lifetime `'2` For more information about this error, try `rustc --explain E0425`. error: could not compile `omp-spt` (bin "omp-spt") due to 7 previous errors