[INFO] fetching crate neurotic 0.2.1... [INFO] testing neurotic-0.2.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate neurotic 0.2.1 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate neurotic 0.2.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded portable-atomic-util v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c4a08348b484dd359b9046eb21dc61bc12be45bf19f0f9ae29c24de559e647f [INFO] running `Command { std: "docker" "start" "-a" "1c4a08348b484dd359b9046eb21dc61bc12be45bf19f0f9ae29c24de559e647f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c4a08348b484dd359b9046eb21dc61bc12be45bf19f0f9ae29c24de559e647f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c4a08348b484dd359b9046eb21dc61bc12be45bf19f0f9ae29c24de559e647f", kill_on_drop: false }` [INFO] [stdout] 1c4a08348b484dd359b9046eb21dc61bc12be45bf19f0f9ae29c24de559e647f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71090a8a03a27ee02b91688146ba41bba3327d9c22dcfbb14efb1998e9f7d5aa [INFO] running `Command { std: "docker" "start" "-a" "71090a8a03a27ee02b91688146ba41bba3327d9c22dcfbb14efb1998e9f7d5aa", 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 paste v1.0.15 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling anyhow v1.0.91 [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 crossbeam-deque v0.8.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling rmp v0.8.14 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [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 ndarray v0.16.1 [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling neurotic v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.34s [INFO] running `Command { std: "docker" "inspect" "71090a8a03a27ee02b91688146ba41bba3327d9c22dcfbb14efb1998e9f7d5aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71090a8a03a27ee02b91688146ba41bba3327d9c22dcfbb14efb1998e9f7d5aa", kill_on_drop: false }` [INFO] [stdout] 71090a8a03a27ee02b91688146ba41bba3327d9c22dcfbb14efb1998e9f7d5aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 013d8044e9e62e2320bb2ddbd390070927a852bde4b17f4c7649db1edbdb4f9c [INFO] running `Command { std: "docker" "start" "-a" "013d8044e9e62e2320bb2ddbd390070927a852bde4b17f4c7649db1edbdb4f9c", 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.52s [INFO] running `Command { std: "docker" "inspect" "013d8044e9e62e2320bb2ddbd390070927a852bde4b17f4c7649db1edbdb4f9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "013d8044e9e62e2320bb2ddbd390070927a852bde4b17f4c7649db1edbdb4f9c", kill_on_drop: false }` [INFO] [stdout] 013d8044e9e62e2320bb2ddbd390070927a852bde4b17f4c7649db1edbdb4f9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9969fa10e99aca0bac49a348ac75148ff8069fbc009f316c8cf58193860289c3 [INFO] running `Command { std: "docker" "start" "-a" "9969fa10e99aca0bac49a348ac75148ff8069fbc009f316c8cf58193860289c3", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/neurotic-ef478639e2ffb422) [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 75) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 58) - 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] 7 | 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] 3 | 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 75) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NeuralNetwork` [INFO] [stdout] --> src/lib.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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 58) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoOptimiser` in this scope [INFO] [stdout] --> src/lib.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + use neurotic::optimisers::NoOptimiser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NetworkTrainer` [INFO] [stdout] --> src/lib.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + 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] 7 | 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] 8 | 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: 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/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] 4 | let layer_dimensions = layer_sizes [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Adam` [INFO] [stdout] --> src/lib.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 11 | 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] 2 + 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] 11 | let adam = Adam::new(&layer_dims, beta1, beta2, epsilon); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NetworkTrainer` in this scope [INFO] [stdout] --> src/lib.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 14 | let mut trainer: NetworkTrainer = [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use neurotic::training::NetworkTrainer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Adam` in this scope [INFO] [stdout] --> src/lib.rs:95:33 [INFO] [stdout] | [INFO] [stdout] 14 | let mut trainer: NetworkTrainer = [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use neurotic::optimisers::Adam; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NetworkTrainer` [INFO] [stdout] --> src/lib.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 15 | 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] 2 + 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] 15 | 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] 15 | 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] 15 | 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: 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/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] 7 | let mut data = Vec::with_capacity(usize); [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `size` [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] 9 | 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] 9 | 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] 10 | 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] 10 | 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.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9969fa10e99aca0bac49a348ac75148ff8069fbc009f316c8cf58193860289c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9969fa10e99aca0bac49a348ac75148ff8069fbc009f316c8cf58193860289c3", kill_on_drop: false }` [INFO] [stdout] 9969fa10e99aca0bac49a348ac75148ff8069fbc009f316c8cf58193860289c3