[INFO] fetching crate cowmug 0.0.1... [INFO] testing cowmug-0.0.1 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate cowmug 0.0.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate cowmug 0.0.1 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-0/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac5a4e2a13a02ac5c3797373a5b332b689a694f8e910b24f8d7ca8fb2f70f9c7 [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" "ac5a4e2a13a02ac5c3797373a5b332b689a694f8e910b24f8d7ca8fb2f70f9c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac5a4e2a13a02ac5c3797373a5b332b689a694f8e910b24f8d7ca8fb2f70f9c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac5a4e2a13a02ac5c3797373a5b332b689a694f8e910b24f8d7ca8fb2f70f9c7", kill_on_drop: false }` [INFO] [stdout] ac5a4e2a13a02ac5c3797373a5b332b689a694f8e910b24f8d7ca8fb2f70f9c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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] 7d18f52fe31c97cbfa5838df93e6f4a3bf39aad0765cacb9c21d1211e81a348c [INFO] running `Command { std: "docker" "start" "-a" "7d18f52fe31c97cbfa5838df93e6f4a3bf39aad0765cacb9c21d1211e81a348c", 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.58s [INFO] running `Command { std: "docker" "inspect" "7d18f52fe31c97cbfa5838df93e6f4a3bf39aad0765cacb9c21d1211e81a348c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d18f52fe31c97cbfa5838df93e6f4a3bf39aad0765cacb9c21d1211e81a348c", kill_on_drop: false }` [INFO] [stdout] 7d18f52fe31c97cbfa5838df93e6f4a3bf39aad0765cacb9c21d1211e81a348c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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] 23abe8b0fa59d4244f43284b0c811040c490cf019b35300d129cc10a78a4ac46 [INFO] running `Command { std: "docker" "start" "-a" "23abe8b0fa59d4244f43284b0c811040c490cf019b35300d129cc10a78a4ac46", kill_on_drop: false }` [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] 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 test [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "23abe8b0fa59d4244f43284b0c811040c490cf019b35300d129cc10a78a4ac46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23abe8b0fa59d4244f43284b0c811040c490cf019b35300d129cc10a78a4ac46", kill_on_drop: false }` [INFO] [stdout] 23abe8b0fa59d4244f43284b0c811040c490cf019b35300d129cc10a78a4ac46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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] 4c9affaaa7d0ed9d135347ac7744c2d98b960e8f1c4b99f6616324cce6b379db [INFO] running `Command { std: "docker" "start" "-a" "4c9affaaa7d0ed9d135347ac7744c2d98b960e8f1c4b99f6616324cce6b379db", 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] [stderr] Doc-tests cowmug [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] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/question.rs - question::Question::question (line 39) ... FAILED [INFO] [stdout] test src/question.rs - question::Question::add_choice (line 100) ... FAILED [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/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::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/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 (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/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.31s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "4c9affaaa7d0ed9d135347ac7744c2d98b960e8f1c4b99f6616324cce6b379db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9affaaa7d0ed9d135347ac7744c2d98b960e8f1c4b99f6616324cce6b379db", kill_on_drop: false }` [INFO] [stdout] 4c9affaaa7d0ed9d135347ac7744c2d98b960e8f1c4b99f6616324cce6b379db