[INFO] fetching crate cowmug 0.0.1... [INFO] testing cowmug-0.0.1 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate cowmug 0.0.1 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate cowmug 0.0.1 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cowmug 0.0.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate cowmug 0.0.1 [INFO] tweaked toml for crates.io crate cowmug 0.0.1 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate cowmug 0.0.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 877fca67a26cad453eac9a5c567ac5784c6178a172ef7c432d5af230a6a2ebc3 [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" "877fca67a26cad453eac9a5c567ac5784c6178a172ef7c432d5af230a6a2ebc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "877fca67a26cad453eac9a5c567ac5784c6178a172ef7c432d5af230a6a2ebc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "877fca67a26cad453eac9a5c567ac5784c6178a172ef7c432d5af230a6a2ebc3", kill_on_drop: false }` [INFO] [stdout] 877fca67a26cad453eac9a5c567ac5784c6178a172ef7c432d5af230a6a2ebc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=forbid" "-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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0768103508ff0013a568ae6578e354d82ef69c5e058357f8c5aa2108c84bb48d [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" "0768103508ff0013a568ae6578e354d82ef69c5e058357f8c5aa2108c84bb48d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling termion v1.5.5 [INFO] [stderr] Compiling cowmug v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `cursor_last_position` [INFO] [stdout] --> src/prompt.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | cursor_last_position: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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 2.50s [INFO] running `Command { std: "docker" "inspect" "0768103508ff0013a568ae6578e354d82ef69c5e058357f8c5aa2108c84bb48d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0768103508ff0013a568ae6578e354d82ef69c5e058357f8c5aa2108c84bb48d", kill_on_drop: false }` [INFO] [stdout] 0768103508ff0013a568ae6578e354d82ef69c5e058357f8c5aa2108c84bb48d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=forbid" "-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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--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] 7bd510da18920860b2316dbdd0baa0f5ad69e58051a9e085d4966522ebd860e3 [INFO] running `Command { std: "docker" "start" "-a" "7bd510da18920860b2316dbdd0baa0f5ad69e58051a9e085d4966522ebd860e3", kill_on_drop: false }` [INFO] [stderr] Compiling cowmug v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `cursor_last_position` [INFO] [stdout] --> src/prompt.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | cursor_last_position: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `cursor_last_position` [INFO] [stdout] --> src/prompt.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | cursor_last_position: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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 0.59s [INFO] running `Command { std: "docker" "inspect" "7bd510da18920860b2316dbdd0baa0f5ad69e58051a9e085d4966522ebd860e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bd510da18920860b2316dbdd0baa0f5ad69e58051a9e085d4966522ebd860e3", kill_on_drop: false }` [INFO] [stdout] 7bd510da18920860b2316dbdd0baa0f5ad69e58051a9e085d4966522ebd860e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=forbid" "-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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 828e4d0b9e6ff2cba2092eaa2b00e344322a3434a4162a5cc4d677e9a5c1caee [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" "828e4d0b9e6ff2cba2092eaa2b00e344322a3434a4162a5cc4d677e9a5c1caee", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `cursor_last_position` [INFO] [stderr] --> src/prompt.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | cursor_last_position: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: field is never read: `cursor_last_position` [INFO] [stderr] --> src/prompt.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | cursor_last_position: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cowmug-5cc51524838e34ea) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests cowmug [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/question.rs - question::Question (line 8) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::add_choices (line 114) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::add_choice (line 100) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::question (line 39) ... FAILED [INFO] [stdout] test src/prompt.rs - prompt::Prompt::exec (line 29) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::string_answer (line 78) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::index_answer (line 57) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/question.rs - question::Question (line 8) stdout ---- [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 7 | } _doctest_main_src_question_rs_8_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [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/question.rs - question::Question::add_choices (line 114) stdout ---- [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:115:66 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 10 | } _doctest_main_src_question_rs_114_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [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/question.rs - question::Question::add_choice (line 100) stdout ---- [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 7 | } _doctest_main_src_question_rs_100_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:101:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [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/question.rs - question::Question::question (line 39) stdout ---- [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:40:66 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 5 | } _doctest_main_src_question_rs_39_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [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/prompt.rs - prompt::Prompt::exec (line 29) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Question` in this scope [INFO] [stdout] --> src/prompt.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 3 | let mut list_questions: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/prompt.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 4 | let mut pizza_size = Question::new(String::from("Choose the size of your pizza: ")); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/prompt.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut pizza_flavor = Question::new(String::from("Choose pizza:")); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Prompt` [INFO] [stdout] --> src/prompt.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 19 | let mut prompt = Prompt::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Prompt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/prompt.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 24 | let mut choices_is_correct = Question::new(format!( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/question.rs - question::Question::string_answer (line 78) stdout ---- [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/question.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_question_rs_78_0() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] 3 | let mut list_questions: Vec = Vec::new(); [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 12 | } _doctest_main_src_question_rs_78_0() } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:80:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 12 | } _doctest_main_src_question_rs_78_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Question` in this scope [INFO] [stdout] --> src/question.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 3 | let mut list_questions: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `prompt` in this scope [INFO] [stdout] --> src/question.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 9 | prompt.exec(&mut list_questions).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/question.rs - question::Question::index_answer (line 57) stdout ---- [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/question.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_question_rs_57_0() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] 3 | let mut list_questions: Vec = Vec::new(); [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 12 | } _doctest_main_src_question_rs_57_0() } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/question.rs:59:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | - unclosed delimiter ^ help: `)` may belong here [INFO] [stdout] [INFO] [stdout] error: expected expression, found `)` [INFO] [stdout] --> src/question.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 12 | } _doctest_main_src_question_rs_57_0() } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Question` in this scope [INFO] [stdout] --> src/question.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 3 | let mut list_questions: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Question` [INFO] [stdout] --> src/question.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 4 | let mut question = Question::new(String::from("choose a color: "); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use cowmug::Question; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `prompt` in this scope [INFO] [stdout] --> src/question.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 9 | prompt.exec(&mut list_questions).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/prompt.rs - prompt::Prompt::exec (line 29) [INFO] [stdout] src/question.rs - question::Question (line 8) [INFO] [stdout] src/question.rs - question::Question::add_choice (line 100) [INFO] [stdout] src/question.rs - question::Question::add_choices (line 114) [INFO] [stdout] src/question.rs - question::Question::index_answer (line 57) [INFO] [stdout] src/question.rs - question::Question::question (line 39) [INFO] [stdout] src/question.rs - question::Question::string_answer (line 78) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "828e4d0b9e6ff2cba2092eaa2b00e344322a3434a4162a5cc4d677e9a5c1caee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "828e4d0b9e6ff2cba2092eaa2b00e344322a3434a4162a5cc4d677e9a5c1caee", kill_on_drop: false }` [INFO] [stdout] 828e4d0b9e6ff2cba2092eaa2b00e344322a3434a4162a5cc4d677e9a5c1caee