[INFO] fetching crate actix-telegram-derive 0.2.2... [INFO] testing actix-telegram-derive-0.2.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate actix-telegram-derive 0.2.2 into /workspace/builds/worker-65/source [INFO] validating manifest of crates.io crate actix-telegram-derive 0.2.2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-telegram-derive 0.2.2 [INFO] finished tweaking crates.io crate actix-telegram-derive 0.2.2 [INFO] tweaked toml for crates.io crate actix-telegram-derive 0.2.2 written to /workspace/builds/worker-65/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16ea1c0648c519fec047b0a19459e94c0713906a8f13ad650e90a81bcac6b45a [INFO] running `Command { std: "docker" "start" "-a" "16ea1c0648c519fec047b0a19459e94c0713906a8f13ad650e90a81bcac6b45a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16ea1c0648c519fec047b0a19459e94c0713906a8f13ad650e90a81bcac6b45a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ea1c0648c519fec047b0a19459e94c0713906a8f13ad650e90a81bcac6b45a", kill_on_drop: false }` [INFO] [stdout] 16ea1c0648c519fec047b0a19459e94c0713906a8f13ad650e90a81bcac6b45a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5151a294f9b7071ea65c7e5c5845005e9c943936df07792bf1c61870848cafd [INFO] running `Command { std: "docker" "start" "-a" "b5151a294f9b7071ea65c7e5c5845005e9c943936df07792bf1c61870848cafd", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling actix-telegram-derive v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:327:51 [INFO] [stdout] | [INFO] [stdout] 327 | fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 327 - fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] 327 + fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] 227 + let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.56s [INFO] running `Command { std: "docker" "inspect" "b5151a294f9b7071ea65c7e5c5845005e9c943936df07792bf1c61870848cafd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5151a294f9b7071ea65c7e5c5845005e9c943936df07792bf1c61870848cafd", kill_on_drop: false }` [INFO] [stdout] b5151a294f9b7071ea65c7e5c5845005e9c943936df07792bf1c61870848cafd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61721eddd640b343ea2cf590bd1ce397f9ec75a05e3b10f0f80e09c7764c4696 [INFO] running `Command { std: "docker" "start" "-a" "61721eddd640b343ea2cf590bd1ce397f9ec75a05e3b10f0f80e09c7764c4696", kill_on_drop: false }` [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:327:51 [INFO] [stdout] | [INFO] [stdout] 327 | fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 327 - fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] 327 + fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] 227 + let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling actix-telegram-derive v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:327:51 [INFO] [stdout] | [INFO] [stdout] 327 | fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 327 - fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] 327 + fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] 227 + let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.92s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/actix_telegram_derive-b077f5bc25540043) [INFO] running `Command { std: "docker" "inspect" "61721eddd640b343ea2cf590bd1ce397f9ec75a05e3b10f0f80e09c7764c4696", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61721eddd640b343ea2cf590bd1ce397f9ec75a05e3b10f0f80e09c7764c4696", kill_on_drop: false }` [INFO] [stdout] 61721eddd640b343ea2cf590bd1ce397f9ec75a05e3b10f0f80e09c7764c4696 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c21fef582e126763306c2f8b256bbe6f1ce07762fe304ec0227064ff9b552a5d [INFO] running `Command { std: "docker" "start" "-a" "c21fef582e126763306c2f8b256bbe6f1ce07762fe304ec0227064ff9b552a5d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:327:51 [INFO] [stderr] | [INFO] [stderr] 327 | fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 327 - fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stderr] 327 + fn file_fields(fields: FieldsNamed) -> Option> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:227:33 [INFO] [stderr] | [INFO] [stderr] 227 | let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 227 - let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stderr] 227 + let file_fields: Option> = match struct_name.to_string().as_str() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `actix-telegram-derive` (lib) generated 2 warnings [INFO] [stderr] warning: `actix-telegram-derive` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.55s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/actix_telegram_derive-b077f5bc25540043) [INFO] [stderr] Doc-tests actix-telegram-derive [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 9) ... FAILED [INFO] [stdout] test src/lib.rs - (line 50) - compile fail ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 9) stdout ---- [INFO] [stdout] error[E0463]: can't find crate for `getset` [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate getset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Getters` in this scope [INFO] [stdout] --> src/lib.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Getters, Setters, New, Default)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Setters` in this scope [INFO] [stdout] --> src/lib.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Getters, Setters, New, Default)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `New` in this scope [INFO] [stdout] --> src/lib.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Getters, Setters, New, Default)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[get(vis = "pub")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[get(vis = "pub", mutable)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `set` in this scope [INFO] [stdout] --> src/lib.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[set(vis = "pub", consume)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `set` in this scope [INFO] [stdout] --> src/lib.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[set(vis = "pub")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `new` in this scope [INFO] [stdout] --> src/lib.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[new(vis = "pub")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[get(copy)] #[get(mutable)] #[set] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 14 | #[get(copy)] #[get(mutable)] #[set] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `set` in this scope [INFO] [stdout] --> src/lib.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 14 | #[get(copy)] #[get(mutable)] #[set] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `set` in this scope [INFO] [stdout] --> src/lib.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 21 | #[set(optional)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- function or associated item `new` not found for this [INFO] [stdout] ... [INFO] [stdout] 26 | let mut foo: Foo = Foo::new(1).consume_set_public(3); [INFO] [stdout] | ^^^ function or associated item not found in `Foo<_>` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `private` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `private` not found for this [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(foo.private(), 1); [INFO] [stdout] | ^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `public` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `public` not found for this [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(*foo.public(), Some(3)); [INFO] [stdout] | ^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_private` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `set_private` not found for this [INFO] [stdout] ... [INFO] [stdout] 29 | foo.set_private(3); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `private_mut` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `private_mut` not found for this [INFO] [stdout] ... [INFO] [stdout] 30 | (*foo.private_mut()) += 1; [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `private` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `private` not found for this [INFO] [stdout] ... [INFO] [stdout] 31 | assert_eq!(foo.private(), 4); [INFO] [stdout] | ^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_public` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `set_public` not found for this [INFO] [stdout] ... [INFO] [stdout] 32 | foo.set_public(4); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `public` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `public` not found for this [INFO] [stdout] ... [INFO] [stdout] 33 | assert_eq!(*foo.public(), Some(4)); [INFO] [stdout] | ^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_public` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `set_public` not found for this [INFO] [stdout] ... [INFO] [stdout] 34 | foo.set_public(None); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `public` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `public` not found for this [INFO] [stdout] ... [INFO] [stdout] 35 | assert_eq!(*foo.public(), None); [INFO] [stdout] | ^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_optional` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `set_optional` not found for this [INFO] [stdout] ... [INFO] [stdout] 36 | foo.set_optional(Some("test")); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `optional` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `optional` not found for this [INFO] [stdout] ... [INFO] [stdout] 37 | assert_eq!(foo.optional(), &Some("test".to_string())); [INFO] [stdout] | ^^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_optional` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `set_optional` not found for this [INFO] [stdout] ... [INFO] [stdout] 38 | foo.set_optional(None::<&str>); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `optional` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Foo where T: Copy + Clone + Default { [INFO] [stdout] | ------------------------------------------------- method `optional` not found for this [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(*foo.optional(), None); [INFO] [stdout] | ^^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.24s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "c21fef582e126763306c2f8b256bbe6f1ce07762fe304ec0227064ff9b552a5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c21fef582e126763306c2f8b256bbe6f1ce07762fe304ec0227064ff9b552a5d", kill_on_drop: false }` [INFO] [stdout] c21fef582e126763306c2f8b256bbe6f1ce07762fe304ec0227064ff9b552a5d