[INFO] cloning repository https://github.com/buyan001/by_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buyan001/by_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuyan001%2Fby_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuyan001%2Fby_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 229db2469daa6c4a4edec328166fc0e2b8edd3a9 [INFO] checking buyan001/by_rust/229db2469daa6c4a4edec328166fc0e2b8edd3a9 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuyan001%2Fby_rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/buyan001/by_rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/buyan001/by_rust [INFO] finished tweaking git repo https://github.com/buyan001/by_rust [INFO] tweaked toml for git repo https://github.com/buyan001/by_rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/buyan001/by_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror-impl v1.0.60 [INFO] [stderr] Downloaded anyhow v1.0.83 [INFO] [stderr] Downloaded thiserror v1.0.60 [INFO] [stderr] Downloaded syn v2.0.63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3027e4fa6fc20fd510a986fee0366763707c687dba9c042107c7d9d4e9461c9e [INFO] running `Command { std: "docker" "start" "-a" "3027e4fa6fc20fd510a986fee0366763707c687dba9c042107c7d9d4e9461c9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3027e4fa6fc20fd510a986fee0366763707c687dba9c042107c7d9d4e9461c9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3027e4fa6fc20fd510a986fee0366763707c687dba9c042107c7d9d4e9461c9e", kill_on_drop: false }` [INFO] [stdout] 3027e4fa6fc20fd510a986fee0366763707c687dba9c042107c7d9d4e9461c9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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" "RUSTDOCFLAGS=--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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da33460d0cb0477a51135c5afa932f6eabd501dbd72f94ce2b881a87f1e7e814 [INFO] running `Command { std: "docker" "start" "-a" "da33460d0cb0477a51135c5afa932f6eabd501dbd72f94ce2b881a87f1e7e814", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/helpers/common) [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Compiling anyhow v1.0.83 [INFO] [stderr] Checking outro_03 v0.1.0 (/opt/rustwide/workdir/exercises/04_traits/13_outro) [INFO] [stderr] Checking outro_02 v0.1.0 (/opt/rustwide/workdir/exercises/03_ticket_v1/12_outro) [INFO] [stderr] Checking assoc_vs_generic v0.1.0 (/opt/rustwide/workdir/exercises/04_traits/09_assoc_vs_generic) [INFO] [stderr] Checking vec v0.1.0 (/opt/rustwide/workdir/exercises/06_ticket_management/02_vec) [INFO] [stderr] Checking sized v0.1.0 (/opt/rustwide/workdir/exercises/04_traits/07_sized) [INFO] [stderr] Checking thiserror_ v0.1.0 (/opt/rustwide/workdir/exercises/05_ticket_v2/12_thiserror) [INFO] [stderr] Checking syntax v0.1.0 (/opt/rustwide/workdir/exercises/01_intro/01_syntax) [INFO] [stderr] Checking for_ v0.1.0 (/opt/rustwide/workdir/exercises/02_basic_calculator/07_for) [INFO] [stderr] Checking str_slice v0.1.0 (/opt/rustwide/workdir/exercises/04_traits/05_str_slice) [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking interior_mutability v0.1.0 (/opt/rustwide/workdir/exercises/07_threads/06_interior_mutability) [INFO] [stdout] error: expected type, found `"not yet implemented"` [INFO] [stdout] --> exercises/07_threads/06_interior_mutability/src/lib.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | counter: todo!(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type [INFO] [stdout] | in this macro invocation [INFO] [stdout] | this macro call doesn't expand to a type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `"not yet implemented"` [INFO] [stdout] --> exercises/07_threads/06_interior_mutability/src/lib.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(value: T, counter: todo!()) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type [INFO] [stdout] | in this macro invocation [INFO] [stdout] | this macro call doesn't expand to a type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> exercises/04_traits/07_sized/src/lib.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | std::mem::size_of::(); [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by an implicit `Sized` bound in `std::mem::size_of` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/mem/mod.rs:308:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking error_enums v0.1.0 (/opt/rustwide/workdir/exercises/05_ticket_v2/08_error_enums) [INFO] [stdout] warning: unused import: `core::net` [INFO] [stdout] --> exercises/02_basic_calculator/07_for/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::net; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::Power` [INFO] [stdout] --> exercises/04_traits/09_assoc_vs_generic/src/lib.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | use super::Power; [INFO] [stdout] | ^^^^^^^^^^^^ no `Power` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> exercises/07_threads/06_interior_mutability/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> exercises/07_threads/06_interior_mutability/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> exercises/06_ticket_management/02_vec/src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn fibonacci(n: u32) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking setters v0.1.0 (/opt/rustwide/workdir/exercises/03_ticket_v1/07_setters) [INFO] [stderr] Checking error_trait v0.1.0 (/opt/rustwide/workdir/exercises/05_ticket_v2/09_error_trait) [INFO] [stderr] error: could not compile `sized` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `interior_mutability` (lib) due to 3 previous errors; 2 warnings emitted [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `power` found for type `u32` in the current scope [INFO] [stdout] --> exercises/04_traits/09_assoc_vs_generic/src/lib.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let x: u32 = 2_u32.power(3u16); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `pow` with a similar name [INFO] [stdout] | [INFO] [stdout] 22 | let x: u32 = 2_u32.pow(3u16); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `power` found for type `u32` in the current scope [INFO] [stdout] --> exercises/04_traits/09_assoc_vs_generic/src/lib.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | let x: u32 = 2_u32.power(3u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `pow` with a similar name [INFO] [stdout] | [INFO] [stdout] 28 | let x: u32 = 2_u32.pow(3u32); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `power` found for type `u32` in the current scope [INFO] [stdout] --> exercises/04_traits/09_assoc_vs_generic/src/lib.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | let x: u32 = 2_u32.power(&3u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `pow` with a similar name [INFO] [stdout] | [INFO] [stdout] 34 | let x: u32 = 2_u32.pow(&3u32); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: enum `TicketNewError` is never used [INFO] [stdout] --> exercises/05_ticket_v2/12_thiserror/src/lib.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum TicketNewError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> exercises/05_ticket_v2/12_thiserror/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> exercises/05_ticket_v2/12_thiserror/src/lib.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/05_ticket_v2/12_thiserror/src/lib.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 28 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `assoc_vs_generic` (lib test) due to 5 previous errors [INFO] [stdout] error[E0432]: unresolved import `outro_02::Order` [INFO] [stdout] --> exercises/03_ticket_v1/12_outro/tests/integration.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use outro_02::Order; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Order` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `outro_03::SaturatingU16` [INFO] [stdout] --> exercises/04_traits/13_outro/tests/integration.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use outro_03::SaturatingU16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `SaturatingU16` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `outro_03` (test "integration") due to 2 previous errors [INFO] [stderr] error: could not compile `outro_02` (test "integration") due to 2 previous errors [INFO] [stdout] error[E0277]: the trait bound `TicketNewError: AmbiguousIfMoreThanOne` is not satisfied [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:104:22 [INFO] [stdout] | [INFO] [stdout] 104 | assert_impl_one!(TicketNewError: std::error::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `TicketNewError`, which is required by `TicketNewError: AmbiguousIfMoreThanOne<_>` [INFO] [stdout] | [INFO] [stdout] note: required for `TicketNewError` to implement `AmbiguousIfMoreThanOne` [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | assert_impl_one!(TicketNewError: std::error::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] = note: this error originates in the macro `assert_impl_one` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TicketNewError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:101:34 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(format!("{}", ticket.unwrap_err()), "Title cannot be empty"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `TicketNewError` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `TicketNewError` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> exercises/05_ticket_v2/09_error_trait/src/lib.rs:15:52 [INFO] [stdout] | [INFO] [stdout] 15 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `error_trait` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] [stdout] error[E0599]: no method named `set_title` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_title` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 57 | ticket.set_title("A new title".into()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `title` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_description` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_description` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 58 | ticket.set_description("A new description".into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `description` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_status` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_status` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 59 | ticket.set_status("Done".into()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `status` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn status(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_title` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:69:73 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_title` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 69 | Ticket::new(valid_title(), valid_description(), "To-Do".into()).set_title("".into()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `title` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_description` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:75:73 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_description` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 75 | Ticket::new(valid_title(), valid_description(), "To-Do".into()).set_description("".into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `description` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_title` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_title` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 81 | / Ticket::new(valid_title(), valid_description(), "To-Do".into()) [INFO] [stdout] 82 | | .set_title(overly_long_title()) [INFO] [stdout] | |_____________-^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `title` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_description` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_description` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 88 | / Ticket::new(valid_title(), valid_description(), "To-Do".into()) [INFO] [stdout] 89 | | .set_description(overly_long_description()) [INFO] [stdout] | |_____________-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `description` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_status` found for struct `Ticket` in the current scope [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:95:73 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ticket { [INFO] [stdout] | ----------------- method `set_status` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 95 | Ticket::new(valid_title(), valid_description(), "To-Do".into()).set_status("Funny".into()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `status` with a similar name, but with different arguments [INFO] [stdout] --> exercises/03_ticket_v1/07_setters/src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn status(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `setters` (lib test) due to 9 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | return Err("Title cannot be empty".to_string()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TicketNewError`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `String` due to the type of the argument passed [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | return Err("Title cannot be empty".to_string()); [INFO] [stdout] | ^^^^-----------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:536:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | return Err("Title cannot be longer than 50 characters".to_string()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TicketNewError`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `String` due to the type of the argument passed [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | return Err("Title cannot be longer than 50 characters".to_string()); [INFO] [stdout] | ^^^^-------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:536:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | return Err("Description cannot be empty".to_string()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TicketNewError`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `String` due to the type of the argument passed [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | return Err("Description cannot be empty".to_string()); [INFO] [stdout] | ^^^^-----------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:536:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | return Err("Description cannot be longer than 500 characters".to_string()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TicketNewError`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `String` due to the type of the argument passed [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | return Err("Description cannot be longer than 500 characters".to_string()); [INFO] [stdout] | ^^^^--------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:536:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> exercises/05_ticket_v2/08_error_enums/src/lib.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `error_enums` (lib test) due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "da33460d0cb0477a51135c5afa932f6eabd501dbd72f94ce2b881a87f1e7e814", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da33460d0cb0477a51135c5afa932f6eabd501dbd72f94ce2b881a87f1e7e814", kill_on_drop: false }` [INFO] [stdout] da33460d0cb0477a51135c5afa932f6eabd501dbd72f94ce2b881a87f1e7e814