[INFO] cloning repository https://github.com/nusic1/crash-course [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nusic1/crash-course" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d20c05f784ec6cf57e6e838981cb6d1f3612a9dd [INFO] checking nusic1/crash-course against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nusic1/crash-course on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nusic1/crash-course [INFO] finished tweaking git repo https://github.com/nusic1/crash-course [INFO] tweaked toml for git repo https://github.com/nusic1/crash-course written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/nusic1/crash-course already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3936ca048a84aa10dc81c28770a8df52ce7f419be1a8cc1b619f79b043e5a6c4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3936ca048a84aa10dc81c28770a8df52ce7f419be1a8cc1b619f79b043e5a6c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3936ca048a84aa10dc81c28770a8df52ce7f419be1a8cc1b619f79b043e5a6c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3936ca048a84aa10dc81c28770a8df52ce7f419be1a8cc1b619f79b043e5a6c4", kill_on_drop: false }` [INFO] [stdout] 3936ca048a84aa10dc81c28770a8df52ce7f419be1a8cc1b619f79b043e5a6c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca52668785a96fa71282cb5d35ff8bb36f91e9728b12624e2398ecb8a8cfb671 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ca52668785a96fa71282cb5d35ff8bb36f91e9728b12624e2398ecb8a8cfb671", kill_on_drop: false }` [INFO] [stderr] Checking crash-course v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | #![allow(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | #![allow(dead_code, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | #![allow(dead_code, unused_mut, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 222 | #![allow(unused_mut)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | #![allow(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | #![allow(dead_code, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | #![allow(dead_code, unused_mut, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: an inner attribute is not permitted in this context [INFO] [stdout] --> src/main.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 222 | #![allow(unused_mut)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 14 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `STARTING_MISSILES` is defined multiple times [INFO] [stdout] --> src/main.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 11 | const STARTING_MISSILES: i32 = 8; [INFO] [stdout] | --------------------------------- previous definition of the value `STARTING_MISSILES` here [INFO] [stdout] ... [INFO] [stdout] 24 | const STARTING_MISSILES: i32 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `STARTING_MISSILES` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `STARTING_MISSILES` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `READY_AMOUNT` is defined multiple times [INFO] [stdout] --> src/main.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 12 | const READY_AMOUNT: i32 = 2; [INFO] [stdout] | ---------------------------- previous definition of the value `READY_AMOUNT` here [INFO] [stdout] ... [INFO] [stdout] 25 | const READY_AMOUNT: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `READY_AMOUNT` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `READY_AMOUNT` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 27 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 40 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 87 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 142 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 224 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ding_machine` [INFO] [stdout] --> src/main.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | use ding_machine::{on_off, print_difference, print_array, ding, print_distance}; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `ding_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 14 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `STARTING_MISSILES` is defined multiple times [INFO] [stdout] --> src/main.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 11 | const STARTING_MISSILES: i32 = 8; [INFO] [stdout] | --------------------------------- previous definition of the value `STARTING_MISSILES` here [INFO] [stdout] ... [INFO] [stdout] 24 | const STARTING_MISSILES: i32 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `STARTING_MISSILES` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `STARTING_MISSILES` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `READY_AMOUNT` is defined multiple times [INFO] [stdout] --> src/main.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 12 | const READY_AMOUNT: i32 = 2; [INFO] [stdout] | ---------------------------- previous definition of the value `READY_AMOUNT` here [INFO] [stdout] ... [INFO] [stdout] 25 | const READY_AMOUNT: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `READY_AMOUNT` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `READY_AMOUNT` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 27 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 40 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 87 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 142 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 224 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ding_machine` [INFO] [stdout] --> src/main.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | use ding_machine::{on_off, print_difference, print_array, ding, print_distance}; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `ding_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ready` in this scope [INFO] [stdout] --> src/main.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85| use core::future::ready; [INFO] [stdout] | [INFO] [stdout] 85| use std::future::ready; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `missiles` in this scope [INFO] [stdout] --> src/main.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / fn main() { [INFO] [stdout] 15 | | let mut missiles = STARTING_MISSILES; [INFO] [stdout] 16 | | let ready = READY_AMOUNT; [INFO] [stdout] 17 | | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] 18 | | missiles = missiles - ready; [INFO] [stdout] 19 | | println!("{} missiles left", missiles); [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | / fn main() { [INFO] [stdout] 28 | | let (mut missiles, ready): (i32, i32) = (STARTING_MISSILES, READY_AMOUNT); [INFO] [stdout] 29 | | let ready: i32 = READY_AMOUNT; [INFO] [stdout] 30 | | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] 31 | | missiles = missiles - ready; [INFO] [stdout] 32 | | println!("{} missiles left", missiles); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() { [INFO] [stdout] 41 | | let width = 4; [INFO] [stdout] 42 | | let height = 7; [INFO] [stdout] 43 | | let depth = 10; [INFO] [stdout] ... | [INFO] [stdout] 63 | | println!("Volume is {}", volume(width, height, depth)); [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | / fn main() { [INFO] [stdout] 88 | | let coords: (f32, f32) = (6.3, 15.0); [INFO] [stdout] 89 | | // 1. Pass parts of `coords` to the `print_difference` function. This should show the difference [INFO] [stdout] 90 | | // between the two numbers in coords when you do `cargo run`. Use tuple indexing. [INFO] [stdout] ... | [INFO] [stdout] 134 | | print_distance(coords); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 142 | / fn main() { [INFO] [stdout] 143 | | // This collects any command-line arguments into a vector of Strings. [INFO] [stdout] 144 | | // For example: [INFO] [stdout] 145 | | // [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | / fn main() { [INFO] [stdout] 225 | | // This fancy stuff either gets the first argument as a String, or prints [INFO] [stdout] 226 | | // usage and exits if an argument was not supplied to the program. [INFO] [stdout] 227 | | let mut arg: String = std::env::args().nth(1).unwrap_or_else(|| { [INFO] [stdout] ... | [INFO] [stdout] 278 | | println!("1 + 2 = {}, even via references", add(&1, &2)); [INFO] [stdout] 279 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ready` in this scope [INFO] [stdout] --> src/main.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85| use core::future::ready; [INFO] [stdout] | [INFO] [stdout] 85| use std::future::ready; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `missiles` in this scope [INFO] [stdout] --> src/main.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / fn main() { [INFO] [stdout] 15 | | let mut missiles = STARTING_MISSILES; [INFO] [stdout] 16 | | let ready = READY_AMOUNT; [INFO] [stdout] 17 | | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] 18 | | missiles = missiles - ready; [INFO] [stdout] 19 | | println!("{} missiles left", missiles); [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | / fn main() { [INFO] [stdout] 28 | | let (mut missiles, ready): (i32, i32) = (STARTING_MISSILES, READY_AMOUNT); [INFO] [stdout] 29 | | let ready: i32 = READY_AMOUNT; [INFO] [stdout] 30 | | println!("Firing {} of my {} missiles...", ready, missiles); [INFO] [stdout] 31 | | missiles = missiles - ready; [INFO] [stdout] 32 | | println!("{} missiles left", missiles); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() { [INFO] [stdout] 41 | | let width = 4; [INFO] [stdout] 42 | | let height = 7; [INFO] [stdout] 43 | | let depth = 10; [INFO] [stdout] ... | [INFO] [stdout] 63 | | println!("Volume is {}", volume(width, height, depth)); [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | / fn main() { [INFO] [stdout] 88 | | let coords: (f32, f32) = (6.3, 15.0); [INFO] [stdout] 89 | | // 1. Pass parts of `coords` to the `print_difference` function. This should show the difference [INFO] [stdout] 90 | | // between the two numbers in coords when you do `cargo run`. Use tuple indexing. [INFO] [stdout] ... | [INFO] [stdout] 134 | | print_distance(coords); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 142 | / fn main() { [INFO] [stdout] 143 | | // This collects any command-line arguments into a vector of Strings. [INFO] [stdout] 144 | | // For example: [INFO] [stdout] 145 | | // [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | / fn main() { [INFO] [stdout] 225 | | // This fancy stuff either gets the first argument as a String, or prints [INFO] [stdout] 226 | | // usage and exits if an argument was not supplied to the program. [INFO] [stdout] 227 | | let mut arg: String = std::env::args().nth(1).unwrap_or_else(|| { [INFO] [stdout] ... | [INFO] [stdout] 278 | | println!("1 + 2 = {}, even via references", add(&1, &2)); [INFO] [stdout] 279 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0136, E0425, E0428, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0136`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crash-course` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] Some errors have detailed explanations: E0136, E0425, E0428, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0136`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ca52668785a96fa71282cb5d35ff8bb36f91e9728b12624e2398ecb8a8cfb671", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca52668785a96fa71282cb5d35ff8bb36f91e9728b12624e2398ecb8a8cfb671", kill_on_drop: false }` [INFO] [stdout] ca52668785a96fa71282cb5d35ff8bb36f91e9728b12624e2398ecb8a8cfb671