[INFO] fetching crate vg 0.0.0-obsolete... [INFO] testing vg-0.0.0-obsolete against 1.60.0 for beta-1.61-1 [INFO] extracting crate vg 0.0.0-obsolete into /workspace/builds/worker-34/source [INFO] validating manifest of crates.io crate vg 0.0.0-obsolete on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate vg 0.0.0-obsolete [INFO] finished tweaking crates.io crate vg 0.0.0-obsolete [INFO] tweaked toml for crates.io crate vg 0.0.0-obsolete written to /workspace/builds/worker-34/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65adcd601a7951839aa02de571897dd861f0b00861df98ad5397b9367f2455ca [INFO] running `Command { std: "docker" "start" "-a" "65adcd601a7951839aa02de571897dd861f0b00861df98ad5397b9367f2455ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65adcd601a7951839aa02de571897dd861f0b00861df98ad5397b9367f2455ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65adcd601a7951839aa02de571897dd861f0b00861df98ad5397b9367f2455ca", kill_on_drop: false }` [INFO] [stdout] 65adcd601a7951839aa02de571897dd861f0b00861df98ad5397b9367f2455ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d821c6af96df03763a28605a9f5441e2477fc9bdcefedeaf5383ce708b738156 [INFO] running `Command { std: "docker" "start" "-a" "d821c6af96df03763a28605a9f5441e2477fc9bdcefedeaf5383ce708b738156", kill_on_drop: false }` [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling vg v0.0.0-obsolete (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/input.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | kind: AxisKind, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Axis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/input.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.38s [INFO] running `Command { std: "docker" "inspect" "d821c6af96df03763a28605a9f5441e2477fc9bdcefedeaf5383ce708b738156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d821c6af96df03763a28605a9f5441e2477fc9bdcefedeaf5383ce708b738156", kill_on_drop: false }` [INFO] [stdout] d821c6af96df03763a28605a9f5441e2477fc9bdcefedeaf5383ce708b738156 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf7e28c9da3fb492aae2bfb7e8397d979167a1ef0993637a70664401ce9d5e19 [INFO] running `Command { std: "docker" "start" "-a" "bf7e28c9da3fb492aae2bfb7e8397d979167a1ef0993637a70664401ce9d5e19", kill_on_drop: false }` [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/input.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | kind: AxisKind, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Axis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/input.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling vg v0.0.0-obsolete (/opt/rustwide/workdir) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/input.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | kind: AxisKind, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Axis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/input.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.62s [INFO] running `Command { std: "docker" "inspect" "bf7e28c9da3fb492aae2bfb7e8397d979167a1ef0993637a70664401ce9d5e19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf7e28c9da3fb492aae2bfb7e8397d979167a1ef0993637a70664401ce9d5e19", kill_on_drop: false }` [INFO] [stdout] bf7e28c9da3fb492aae2bfb7e8397d979167a1ef0993637a70664401ce9d5e19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e64848424ab87ae4aef74c13ad21a642642d5a4b75a1c03f980b4f5d27908a31 [INFO] running `Command { std: "docker" "start" "-a" "e64848424ab87ae4aef74c13ad21a642642d5a4b75a1c03f980b4f5d27908a31", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: field is never read: `kind` [INFO] [stderr] --> src/input.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | kind: AxisKind, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Axis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/input.rs:79:10 [INFO] [stderr] | [INFO] [stderr] 79 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `vg` (lib) generated 1 warning [INFO] [stderr] warning: `vg` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.81s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/vg-824be914609c9a80) [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests vg [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/assets.rs - assets (line 6) ... FAILED [INFO] [stdout] test src/assets.rs - assets::Assets (line 133) ... FAILED [INFO] [stdout] test src/assets.rs - assets (line 15) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/assets.rs - assets (line 6) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `vg::assets::generate_asset_packs` [INFO] [stdout] --> src/assets.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::generate_asset_packs; [INFO] [stdout] | ^^^^^^^^^^^^-------------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `generate_asset_pack` [INFO] [stdout] | no `generate_asset_packs` in `assets` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | generate_asset_pack("assets/", "assets.vgpack"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::generate_asset_pack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/assets.rs - assets::Assets (line 133) stdout ---- [INFO] [stdout] error: cannot find macro `asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:134:26 [INFO] [stdout] | [INFO] [stdout] 4 | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] vg::asset_pack [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Assets` in this scope [INFO] [stdout] --> src/assets.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 4 | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::Assets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_png` in this scope [INFO] [stdout] --> src/assets.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 5 | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:135:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_133_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } _doctest_main_src_assets_rs_133_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:135:57 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_133_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } _doctest_main_src_assets_rs_133_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:135:59 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_133_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } _doctest_main_src_assets_rs_133_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/assets.rs - assets (line 15) stdout ---- [INFO] [stdout] error: cannot find macro `asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] vg::asset_pack [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ASSETS` [INFO] [stdout] --> src/assets.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ---------------------------------------------------- help: `ASSETS` is defined here, but is not a type [INFO] [stdout] ... [INFO] [stdout] 8 | let config_str = ASSETS::str("config.toml")?; [INFO] [stdout] | ^^^^^^ use of undeclared type `ASSETS` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ASSETS` [INFO] [stdout] --> src/assets.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ---------------------------------------------------- help: `ASSETS` is defined here, but is not a type [INFO] [stdout] ... [INFO] [stdout] 9 | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | ^^^^^^ use of undeclared type `ASSETS` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Assets` in this scope [INFO] [stdout] --> src/assets.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::Assets; [INFO] [stdout] | [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:20:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_15_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | let config_str = ASSETS::str("config.toml")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] 10 | | } _doctest_main_src_assets_rs_15_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_15_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] ... | [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_assets_rs_15_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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 `FromResidual`) [INFO] [stdout] --> src/assets.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_assets_rs_15_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] ... | [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_assets_rs_15_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/assets.rs - assets (line 15) [INFO] [stdout] src/assets.rs - assets (line 6) [INFO] [stdout] src/assets.rs - assets::Assets (line 133) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "e64848424ab87ae4aef74c13ad21a642642d5a4b75a1c03f980b4f5d27908a31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e64848424ab87ae4aef74c13ad21a642642d5a4b75a1c03f980b4f5d27908a31", kill_on_drop: false }` [INFO] [stdout] e64848424ab87ae4aef74c13ad21a642642d5a4b75a1c03f980b4f5d27908a31