[INFO] fetching crate neurotic 0.2.1... [INFO] testing neurotic-0.2.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate neurotic 0.2.1 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate neurotic 0.2.1 [INFO] finished tweaking crates.io crate neurotic 0.2.1 [INFO] tweaked toml for crates.io crate neurotic 0.2.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate neurotic 0.2.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate neurotic 0.2.1 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded portable-atomic-util v0.2.3 [INFO] [stderr] Downloaded serde_derive v1.0.214 [INFO] [stderr] Downloaded anyhow v1.0.91 [INFO] [stderr] Downloaded crossbeam-utils v0.8.20 [INFO] [stderr] Downloaded portable-atomic v1.9.0 [INFO] [stderr] Downloaded serde v1.0.214 [INFO] [stderr] Downloaded syn v2.0.85 [INFO] [stderr] Downloaded libc v0.2.161 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f8775344355f2f047aeedf9e8df7dd39ea6c07e470749104418f84086a4f1b9 [INFO] running `Command { std: "docker" "start" "-a" "1f8775344355f2f047aeedf9e8df7dd39ea6c07e470749104418f84086a4f1b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f8775344355f2f047aeedf9e8df7dd39ea6c07e470749104418f84086a4f1b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f8775344355f2f047aeedf9e8df7dd39ea6c07e470749104418f84086a4f1b9", kill_on_drop: false }` [INFO] [stdout] 1f8775344355f2f047aeedf9e8df7dd39ea6c07e470749104418f84086a4f1b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d47a1803577fc6c1db161b1badc9a3159d91e4cdbea5b4e68e6bb32e52b2637d [INFO] running `Command { std: "docker" "start" "-a" "d47a1803577fc6c1db161b1badc9a3159d91e4cdbea5b4e68e6bb32e52b2637d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling rmp v0.8.14 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling neurotic v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.36s [INFO] running `Command { std: "docker" "inspect" "d47a1803577fc6c1db161b1badc9a3159d91e4cdbea5b4e68e6bb32e52b2637d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d47a1803577fc6c1db161b1badc9a3159d91e4cdbea5b4e68e6bb32e52b2637d", kill_on_drop: false }` [INFO] [stdout] d47a1803577fc6c1db161b1badc9a3159d91e4cdbea5b4e68e6bb32e52b2637d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad2bc53335d865a16590f81035030fd2d21cce41807e42f1c2f4f50e778cb8f5 [INFO] running `Command { std: "docker" "start" "-a" "ad2bc53335d865a16590f81035030fd2d21cce41807e42f1c2f4f50e778cb8f5", kill_on_drop: false }` [INFO] [stderr] Compiling neurotic v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "ad2bc53335d865a16590f81035030fd2d21cce41807e42f1c2f4f50e778cb8f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad2bc53335d865a16590f81035030fd2d21cce41807e42f1c2f4f50e778cb8f5", kill_on_drop: false }` [INFO] [stdout] ad2bc53335d865a16590f81035030fd2d21cce41807e42f1c2f4f50e778cb8f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0a71ae3e7817ba21d5a3e05e4788341c418198c37e2dc670d650398e2cdba68b [INFO] running `Command { std: "docker" "start" "-a" "0a71ae3e7817ba21d5a3e05e4788341c418198c37e2dc670d650398e2cdba68b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/neurotic-75515621d38886b1) [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] [stderr] Doc-tests neurotic [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - (line 11) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 70) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 58) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 75) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 83) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 36) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | let layer_sizes = &[2, 32, 16, 1]; // 2 neurons for the input layer, 32 and 16 for the hidden [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 70) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `trainer` in this scope [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | trainer.get_network().save("path/to/file").expect("Failed to save network"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 58) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | let mut trainer: NetworkTrainer = NetworkTrainer::new(network, learning_rate, batch_size, None); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NoOptimiser` in this scope [INFO] [stdout] --> src/lib.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | let mut trainer: NetworkTrainer = NetworkTrainer::new(network, learning_rate, batch_size, None); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use neurotic::optimisers::NoOptimiser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | let mut trainer: NetworkTrainer = NetworkTrainer::new(network, learning_rate, batch_size, None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `NetworkTrainer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `network` in this scope [INFO] [stdout] --> src/lib.rs:63:68 [INFO] [stdout] | [INFO] [stdout] 63 | let mut trainer: NetworkTrainer = NetworkTrainer::new(network, learning_rate, batch_size, None); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `training_data` in this scope [INFO] [stdout] --> src/lib.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | trainer.train(training_data, epochs); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 75) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `NeuralNetwork` in this scope [INFO] [stdout] --> src/lib.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | let network = NeuralNetwork::load("path/to/file").expect("Failed to load network"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NeuralNetwork` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use neurotic::core::NeuralNetwork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 83) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `layer_sizes` in this scope [INFO] [stdout] --> src/lib.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 85 | let layer_dimensions = layer_sizes [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Adam` in this scope [INFO] [stdout] --> src/lib.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | let adam = Adam::new(&layer_dims, beta1, beta2, epsilon); [INFO] [stdout] | ^^^^ use of undeclared type `Adam` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 83 + use neurotic::optimisers::Adam; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `layer_dims` in this scope [INFO] [stdout] --> src/lib.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let adam = Adam::new(&layer_dims, beta1, beta2, epsilon); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | let mut trainer: NetworkTrainer = [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 83 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Adam` in this scope [INFO] [stdout] --> src/lib.rs:95:33 [INFO] [stdout] | [INFO] [stdout] 95 | let mut trainer: NetworkTrainer = [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 83 + use neurotic::optimisers::Adam; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | NetworkTrainer::new(network, learning_rate, batch_size, Some(adam)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `NetworkTrainer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 83 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `network` in this scope [INFO] [stdout] --> src/lib.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | NetworkTrainer::new(network, learning_rate, batch_size, Some(adam)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `learning_rate` in this scope [INFO] [stdout] --> src/lib.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | NetworkTrainer::new(network, learning_rate, batch_size, Some(adam)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `batch_size` in this scope [INFO] [stdout] --> src/lib.rs:96:49 [INFO] [stdout] | [INFO] [stdout] 96 | NetworkTrainer::new(network, learning_rate, batch_size, Some(adam)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 36) stdout ---- [INFO] [stdout] error[E0423]: expected value, found builtin type `usize` [INFO] [stdout] --> src/lib.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | let mut data = Vec::with_capacity(usize); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 41 - let mut data = Vec::with_capacity(usize); [INFO] [stdout] 41 + let mut data = Vec::with_capacity(size); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `gen_range` exists for fn item `fn() -> ThreadRng {thread_rng}`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | let a = rand::thread_rng.gen_range(0.0..range); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `fn() -> ThreadRng {thread_rng}` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `fn() -> ThreadRng {thread_rng}: RngCore` [INFO] [stdout] which is required by `fn() -> ThreadRng {thread_rng}: Rng` [INFO] [stdout] help: use parentheses to call this function [INFO] [stdout] | [INFO] [stdout] 43 | let a = rand::thread_rng().gen_range(0.0..range); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `gen_range` exists for fn item `fn() -> ThreadRng {thread_rng}`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | let b = rand::thread_rng.gen_range(0.0..range); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `fn() -> ThreadRng {thread_rng}` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `fn() -> ThreadRng {thread_rng}: RngCore` [INFO] [stdout] which is required by `fn() -> ThreadRng {thread_rng}: Rng` [INFO] [stdout] help: use parentheses to call this function [INFO] [stdout] | [INFO] [stdout] 44 | let b = rand::thread_rng().gen_range(0.0..range); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 36) [INFO] [stdout] src/lib.rs - (line 58) [INFO] [stdout] src/lib.rs - (line 70) [INFO] [stdout] src/lib.rs - (line 75) [INFO] [stdout] src/lib.rs - (line 83) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0a71ae3e7817ba21d5a3e05e4788341c418198c37e2dc670d650398e2cdba68b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a71ae3e7817ba21d5a3e05e4788341c418198c37e2dc670d650398e2cdba68b", kill_on_drop: false }` [INFO] [stdout] 0a71ae3e7817ba21d5a3e05e4788341c418198c37e2dc670d650398e2cdba68b