[INFO] crate kubeclient 0.1.0 is already in cache [INFO] extracting crate kubeclient 0.1.0 into work/ex/beta-1.38-1/sources/1.37.0/reg/kubeclient/0.1.0 [INFO] extracting crate kubeclient 0.1.0 into work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/kubeclient/0.1.0 [INFO] validating manifest of kubeclient-0.1.0 on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of kubeclient-0.1.0 on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing kubeclient-0.1.0 [INFO] finished frobbing kubeclient-0.1.0 [INFO] frobbed toml for kubeclient-0.1.0 written to work/ex/beta-1.38-1/sources/1.37.0/reg/kubeclient/0.1.0/Cargo.toml [INFO] started frobbing kubeclient-0.1.0 [INFO] finished frobbing kubeclient-0.1.0 [INFO] frobbed toml for kubeclient-0.1.0 written to work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/kubeclient/0.1.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing kubeclient-0.1.0 against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/kubeclient/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] ae9442a50b9671a7da735efbd5fab6d01995839355b01c93d0fc652e84e1f4b0 [INFO] running `"docker" "start" "-a" "ae9442a50b9671a7da735efbd5fab6d01995839355b01c93d0fc652e84e1f4b0"` [INFO] [stderr] Compiling kubeclient v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/config.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | env::home_dir() [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/errors.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / error_chain! { [INFO] [stderr] 4 | | foreign_links { [INFO] [stderr] 5 | | Io(::std::io::Error); [INFO] [stderr] 6 | | Json(::serde_json::Error); [INFO] [stderr] ... | [INFO] [stderr] 10 | | } [INFO] [stderr] 11 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.27s [INFO] running `"docker" "inspect" "ae9442a50b9671a7da735efbd5fab6d01995839355b01c93d0fc652e84e1f4b0"` [INFO] running `"docker" "rm" "-f" "ae9442a50b9671a7da735efbd5fab6d01995839355b01c93d0fc652e84e1f4b0"` [INFO] [stdout] ae9442a50b9671a7da735efbd5fab6d01995839355b01c93d0fc652e84e1f4b0 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/kubeclient/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "test" "--frozen" "--no-run"` [INFO] [stdout] 8437cf2d73e57ff59887dac8e74321bae50bca14915bbb5e921e57c78f0df50c [INFO] running `"docker" "start" "-a" "8437cf2d73e57ff59887dac8e74321bae50bca14915bbb5e921e57c78f0df50c"` [INFO] [stderr] Compiling kubeclient v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/config.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | env::home_dir() [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/errors.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / error_chain! { [INFO] [stderr] 4 | | foreign_links { [INFO] [stderr] 5 | | Io(::std::io::Error); [INFO] [stderr] 6 | | Json(::serde_json::Error); [INFO] [stderr] ... | [INFO] [stderr] 10 | | } [INFO] [stderr] 11 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.54s [INFO] running `"docker" "inspect" "8437cf2d73e57ff59887dac8e74321bae50bca14915bbb5e921e57c78f0df50c"` [INFO] running `"docker" "rm" "-f" "8437cf2d73e57ff59887dac8e74321bae50bca14915bbb5e921e57c78f0df50c"` [INFO] [stdout] 8437cf2d73e57ff59887dac8e74321bae50bca14915bbb5e921e57c78f0df50c [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/kubeclient/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "test" "--frozen"` [INFO] [stdout] 249ca1a1851e02725baa581c5ac591d5808a4b7067baf75a319e206c2f2e4630 [INFO] running `"docker" "start" "-a" "249ca1a1851e02725baa581c5ac591d5808a4b7067baf75a319e206c2f2e4630"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running /opt/crater/target/debug/deps/kubeclient-ef5496206c9fc18c [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests kubeclient [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::load_conf (line 31) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::config_maps (line 46) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::network_policies (line 76) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::apply (line 185) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::healthy (line 166) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::create (line 232) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::namespace (line 151) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::deployments (line 61) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::pods (line 106) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::services (line 136) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::KubeClient::scale (line 45) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::nodes (line 91) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::replace (line 209) ... FAILED [INFO] [stdout] test src/clients/mod.rs - clients::Kubernetes::secrets (line 121) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::ReadClient::exists (line 70) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::ListClient::list (line 140) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::ReadClient::get (line 85) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::WriteClient::create (line 105) ... FAILED [INFO] [stdout] test src/clients/resource_clients.rs - clients::resource_clients::WriteClient::delete (line 121) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::load_conf (line 31) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::config_maps (line 46) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.config_maps().exists("my-config-map")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::network_policies (line 76) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.network_policies().exists("web-server")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::apply (line 185) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:188:18 [INFO] [stdout] | [INFO] [stdout] 6 | let is_healthy = kube.apply("web-server/deployment.yaml")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::healthy (line 166) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 6 | let is_healthy = kube.healthy()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::create (line 232) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 6 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:238:16 [INFO] [stdout] | [INFO] [stdout] 9 | let response = kube.create(&secret)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::namespace (line 151) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 6 | let cluster_info = kube.namespace("kube-system") [INFO] [stdout] | ____________________^ [INFO] [stdout] 7 | | .secrets() [INFO] [stdout] 8 | | .get("clusterinfo")?; [INFO] [stdout] | |________________________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::deployments (line 61) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.deployments().exists("web-server")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::pods (line 106) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.pods().exists("web-server-abcdefgh12345678")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::services (line 136) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.services().exists("web-server")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::KubeClient::scale (line 45) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 6 | kube.deployments().scale("web-server", 7)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::nodes (line 91) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.nodes().exists("node-123")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::replace (line 209) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:212:18 [INFO] [stdout] | [INFO] [stdout] 6 | let is_healthy = kube.replace("web-server/deployment.yaml")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/mod.rs - clients::Kubernetes::secrets (line 121) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/mod.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.secrets().exists("my-secret")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::ReadClient::exists (line 70) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 6 | if kube.config_maps().exists("my-config-map")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::ListClient::list (line 140) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list` found for type `kubeclient::clients::KubeClient` in the current scope [INFO] [stdout] --> src/clients/resource_clients.rs:143:35 [INFO] [stdout] | [INFO] [stdout] 6 | let cfg_maps = kube.config_maps().list("my-config-map", None)?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the method `list` exists but the following trait bounds were not satisfied: [INFO] [stdout] `kubeclient::clients::KubeClient : kubeclient::clients::ListClient` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 6 | let cfg_maps = kube.config_maps().list("my-config-map", None)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::ReadClient::get (line 85) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 6 | let cfg_map = kube.config_maps().get("my-config-map")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::WriteClient::create (line 105) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ConfigMap` [INFO] [stdout] --> src/clients/resource_clients.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cfg_map = ConfigMap::new("stage-config")?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `ConfigMap` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cfg_map = ConfigMap::new("stage-config")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 9 | let response = kube.config_maps().create(&cfg_map)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/resource_clients.rs - clients::resource_clients::WriteClient::delete (line 121) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 5 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/clients/resource_clients.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 6 | kube.config_maps().delete("my-config-map")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, or an operator, found `}` [INFO] [stdout] --> src/lib.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 10 | let output = kube.secrets().get("my-secret")? [INFO] [stdout] | - expected one of `.`, `;`, `?`, or an operator here [INFO] [stdout] 11 | // ... [INFO] [stdout] 12 | } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 6 | let kube = Kubernetes::load_conf("admin.conf")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 8 | if kube.healthy()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 9 | if !kube.secrets().exists("my-secret")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stdout] --> src/lib.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 14 | for node in kube.nodes().list()? { [INFO] [stdout] | ^^^^ expected 1 parameter [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 14 | for node in kube.nodes().list()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0616]: field `metadata` of struct `kubeclient::resources::Node` is private [INFO] [stdout] --> src/lib.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 15 | println!("Found node: {}", node.metadata.name); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: `std::option::Option` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 15 | println!("Found node: {}", node.metadata.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `std::option::Option` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `std::option::Option` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required by `std::fmt::Display::fmt` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0616. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::apply (line 185) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::config_maps (line 46) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::create (line 232) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::deployments (line 61) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::healthy (line 166) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::load_conf (line 31) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::namespace (line 151) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::network_policies (line 76) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::nodes (line 91) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::pods (line 106) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::replace (line 209) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::secrets (line 121) [INFO] [stdout] src/clients/mod.rs - clients::Kubernetes::services (line 136) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::KubeClient::scale (line 45) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::ListClient::list (line 140) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::ReadClient::exists (line 70) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::ReadClient::get (line 85) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::WriteClient::create (line 105) [INFO] [stdout] src/clients/resource_clients.rs - clients::resource_clients::WriteClient::delete (line 121) [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 20 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "249ca1a1851e02725baa581c5ac591d5808a4b7067baf75a319e206c2f2e4630"` [INFO] running `"docker" "rm" "-f" "249ca1a1851e02725baa581c5ac591d5808a4b7067baf75a319e206c2f2e4630"` [INFO] [stdout] 249ca1a1851e02725baa581c5ac591d5808a4b7067baf75a319e206c2f2e4630