[INFO] cloning repository https://github.com/liamoc/tesserae [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/liamoc/tesserae" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliamoc%2Ftesserae", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliamoc%2Ftesserae'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a43e56aa7312c1710160acbbe25d383d91046951 [INFO] testing liamoc/tesserae against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliamoc%2Ftesserae" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/liamoc/tesserae on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/liamoc/tesserae [INFO] finished tweaking git repo https://github.com/liamoc/tesserae [INFO] tweaked toml for git repo https://github.com/liamoc/tesserae written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/liamoc/tesserae already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3811b34514eab48f2d390d48c8a743b81e66f64b7981afd6497d884e5c316f18 [INFO] running `Command { std: "docker" "start" "-a" "3811b34514eab48f2d390d48c8a743b81e66f64b7981afd6497d884e5c316f18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3811b34514eab48f2d390d48c8a743b81e66f64b7981afd6497d884e5c316f18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3811b34514eab48f2d390d48c8a743b81e66f64b7981afd6497d884e5c316f18", kill_on_drop: false }` [INFO] [stdout] 3811b34514eab48f2d390d48c8a743b81e66f64b7981afd6497d884e5c316f18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1e464496d8ae9da79050bb58cb7e1c112ef1bb642cefdd3890002676bb245df9 [INFO] running `Command { std: "docker" "start" "-a" "1e464496d8ae9da79050bb58cb7e1c112ef1bb642cefdd3890002676bb245df9", kill_on_drop: false }` [INFO] [stderr] Compiling sdl2 v0.33.0 [INFO] [stderr] Compiling sdl2-sys v0.33.0 [INFO] [stderr] Compiling tesserae v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around const expression [INFO] [stdout] --> src/lib.rs:583:40 [INFO] [stdout] | [INFO] [stdout] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.37s [INFO] running `Command { std: "docker" "inspect" "1e464496d8ae9da79050bb58cb7e1c112ef1bb642cefdd3890002676bb245df9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e464496d8ae9da79050bb58cb7e1c112ef1bb642cefdd3890002676bb245df9", kill_on_drop: false }` [INFO] [stdout] 1e464496d8ae9da79050bb58cb7e1c112ef1bb642cefdd3890002676bb245df9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec4dcc0ef25831dd6ee9154f58b594bc636dd7497130444ba73c49ac8b09862f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ec4dcc0ef25831dd6ee9154f58b594bc636dd7497130444ba73c49ac8b09862f", kill_on_drop: false }` [INFO] [stderr] Compiling bit_reverse v0.1.8 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stdout] warning: unnecessary parentheses around const expression [INFO] [stdout] --> src/lib.rs:583:40 [INFO] [stdout] | [INFO] [stdout] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tesserae v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around const expression [INFO] [stdout] --> src/lib.rs:583:40 [INFO] [stdout] | [INFO] [stdout] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 15.07s [INFO] running `Command { std: "docker" "inspect" "ec4dcc0ef25831dd6ee9154f58b594bc636dd7497130444ba73c49ac8b09862f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec4dcc0ef25831dd6ee9154f58b594bc636dd7497130444ba73c49ac8b09862f", kill_on_drop: false }` [INFO] [stdout] ec4dcc0ef25831dd6ee9154f58b594bc636dd7497130444ba73c49ac8b09862f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d6cf6a34cc805e0451830150585b5a4d5eb6926f459cc7ac1a8a18ac00e0083f [INFO] running `Command { std: "docker" "start" "-a" "d6cf6a34cc805e0451830150585b5a4d5eb6926f459cc7ac1a8a18ac00e0083f", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around const expression [INFO] [stderr] --> src/lib.rs:583:40 [INFO] [stderr] | [INFO] [stderr] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stderr] | ^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around const expression [INFO] [stderr] --> src/lib.rs:583:40 [INFO] [stderr] | [INFO] [stderr] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stderr] | ^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/tesserae-a635e2b5eae69426 [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests tesserae [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] warning: unnecessary parentheses around const expression [INFO] [stderr] --> /opt/rustwide/workdir/src/lib.rs:583:40 [INFO] [stderr] | [INFO] [stderr] 583 | let mut pixel_data = [0 as u8; (64 * 4)]; [INFO] [stderr] | ^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - Graphic<()>::load_file (line 317) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::blank (line 370) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::load_from (line 329) ... FAILED [INFO] [stdout] test src/lib.rs - TileSet::load_from (line 169) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::tile_cache_textured (line 400) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::textured (line 381) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Graphic<()>::load_file (line 317) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `Graphic` [INFO] [stdout] --> src/lib.rs:320:1 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::load_file(path) [INFO] [stdout] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] 4 | // same as [INFO] [stdout] 5 | Graphic::load_from(File::open(path)?) [INFO] [stdout] | ^^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::blank (line 370) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `Graphic` [INFO] [stdout] --> src/lib.rs:373:1 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::blank(8,12) [INFO] [stdout] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] 4 | // same as [INFO] [stdout] 5 | Graphic::solid(8,12,Default::default()) [INFO] [stdout] | ^^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::load_from (line 329) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:330:69 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error: couldn't read src/file: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:330:41 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Graphic` [INFO] [stdout] --> src/lib.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Cursor` [INFO] [stdout] --> src/lib.rs:330:28 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::mouse::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - TileSet::load_from (line 169) stdout ---- [INFO] [stdout] error: couldn't read src/tile_set: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:170:10 [INFO] [stdout] | [INFO] [stdout] 3 | let ts = include_bytes!("tile_set"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TileSet` [INFO] [stdout] --> src/lib.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 4 | TileSet::load_from(Cursor::new(&ts[..])) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::TileSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Cursor` [INFO] [stdout] --> src/lib.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 4 | TileSet::load_from(Cursor::new(&ts[..])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::mouse::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::tile_cache_textured (line 400) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Graphics` [INFO] [stdout] --> src/lib.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Graphics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `texture_creator` in this scope [INFO] [stdout] --> src/lib.rs:401:58 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::textured (line 381) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Graphics` [INFO] [stdout] --> src/lib.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.textured(texture_creator); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Graphics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `texture_creator` in this scope [INFO] [stdout] --> src/lib.rs:382:47 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.textured(texture_creator); [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let g = Graphics::load_file("path")?.textured(texture_creator); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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, E0425, 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/lib.rs - Graphic<()>::blank (line 370) [INFO] [stdout] src/lib.rs - Graphic<()>::load_file (line 317) [INFO] [stdout] src/lib.rs - Graphic<()>::load_from (line 329) [INFO] [stdout] src/lib.rs - Graphic<()>::textured (line 381) [INFO] [stdout] src/lib.rs - Graphic<()>::tile_cache_textured (line 400) [INFO] [stdout] src/lib.rs - TileSet::load_from (line 169) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "d6cf6a34cc805e0451830150585b5a4d5eb6926f459cc7ac1a8a18ac00e0083f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6cf6a34cc805e0451830150585b5a4d5eb6926f459cc7ac1a8a18ac00e0083f", kill_on_drop: false }` [INFO] [stdout] d6cf6a34cc805e0451830150585b5a4d5eb6926f459cc7ac1a8a18ac00e0083f