[INFO] cloning repository https://github.com/wonderwoman13/rustbridge-pittsburgh [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wonderwoman13/rustbridge-pittsburgh" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwonderwoman13%2Frustbridge-pittsburgh", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwonderwoman13%2Frustbridge-pittsburgh'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b65a22a680f03fd5d1640f3203bc6156e55a1c02 [INFO] checking wonderwoman13/rustbridge-pittsburgh against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwonderwoman13%2Frustbridge-pittsburgh" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wonderwoman13/rustbridge-pittsburgh on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wonderwoman13/rustbridge-pittsburgh [INFO] finished tweaking git repo https://github.com/wonderwoman13/rustbridge-pittsburgh [INFO] tweaked toml for git repo https://github.com/wonderwoman13/rustbridge-pittsburgh written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/wonderwoman13/rustbridge-pittsburgh already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a78df3fe22ecfb211c10a0bb1a9b6884d437b17021c27799dede161963a9eac [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" "2a78df3fe22ecfb211c10a0bb1a9b6884d437b17021c27799dede161963a9eac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a78df3fe22ecfb211c10a0bb1a9b6884d437b17021c27799dede161963a9eac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a78df3fe22ecfb211c10a0bb1a9b6884d437b17021c27799dede161963a9eac", kill_on_drop: false }` [INFO] [stdout] 2a78df3fe22ecfb211c10a0bb1a9b6884d437b17021c27799dede161963a9eac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dcf95e76b2fed8f1711432c86c327c5e252e782fdd6c932e6f8a8ba04de2315f [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" "dcf95e76b2fed8f1711432c86c327c5e252e782fdd6c932e6f8a8ba04de2315f", kill_on_drop: false }` [INFO] [stderr] Checking rustbridge-pittsburgh v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 3 | 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 `main` is defined multiple times [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 20 | 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:35:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 35 | 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:50:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 50 | 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:58:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 58 | 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:64:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 64 | 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:72:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 72 | 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:81:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 81 | 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:90:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 90 | 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:111:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 111 | 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:127:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 127 | 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:145:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 145 | 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:160:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 160 | 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:173:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 173 | 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:183:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 183 | 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:198:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 198 | 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:206:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 206 | 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:213:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 213 | 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:226:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 226 | 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 `print_vec` is defined multiple times [INFO] [stdout] --> src/main.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 220 | fn print_vec(v: Vec) { [INFO] [stdout] | ------------------------- previous definition of the value `print_vec` here [INFO] [stdout] ... [INFO] [stdout] 231 | fn print_vec(v: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `print_vec` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `print_vec` 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:237:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 237 | 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:249:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 249 | 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:14:1 [INFO] [stdout] | [INFO] [stdout] 3 | 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 `main` is defined multiple times [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 20 | 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:35:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 35 | 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:50:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 50 | 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:58:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 58 | 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:64:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 64 | 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:72:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 72 | 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:81:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 81 | 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:90:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 90 | 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:111:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 111 | 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:127:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 127 | 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:145:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 145 | 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:160:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 160 | 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:173:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 173 | 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:183:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 183 | 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:198:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 198 | 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:206:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 206 | 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:213:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 213 | 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:226:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 226 | 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 `print_vec` is defined multiple times [INFO] [stdout] --> src/main.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 220 | fn print_vec(v: Vec) { [INFO] [stdout] | ------------------------- previous definition of the value `print_vec` here [INFO] [stdout] ... [INFO] [stdout] 231 | fn print_vec(v: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `print_vec` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `print_vec` 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:237:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 237 | 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] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | let ans = try!(s.parse::()) + 5; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | 0...12 => println!("You may see G or PG movies"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | 13...16 => println!("You may see G, PG, or PG-13 movies"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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 | | println!("Lots: {}", add_fifty(100)); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / fn main() { [INFO] [stdout] 21 | | let age = 13u32; [INFO] [stdout] 22 | | if age < 13 { [INFO] [stdout] 23 | | println!("You may see G or PG movies"); [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / fn main() { [INFO] [stdout] 36 | | let age = 13u32; [INFO] [stdout] 37 | | match age { [INFO] [stdout] 38 | | 0...12 => println!("You may see G or PG movies"), [INFO] [stdout] ... | [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / fn main () { [INFO] [stdout] 51 | | let mut color = [255, 0, 255]; [INFO] [stdout] 52 | | color[0] = 100; [INFO] [stdout] 53 | | println!("The color is {:#?}", color); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | / fn main() { [INFO] [stdout] 59 | | panic!("aaaaa!"); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / fn main () { [INFO] [stdout] 65 | | let color = [255, 0, 255]; [INFO] [stdout] 66 | | let index = 9; [INFO] [stdout] 67 | | println!("The 10th element is {:?}", color[index]); [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / fn main () { [INFO] [stdout] 73 | | let mut prices = vec![30, 100, 2]; [INFO] [stdout] 74 | | prices[0] = 25; [INFO] [stdout] 75 | | prices.push(40); [INFO] [stdout] 76 | | println!("All the prices are: {:?}", prices); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | / fn main () { [INFO] [stdout] 82 | | let names = vec!["Carol", "Jake", "Marylou", "Bruce"]; [INFO] [stdout] 83 | | for name in names.iter() { [INFO] [stdout] 84 | | println!("Hi {}!", name); [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | / fn main () { [INFO] [stdout] 91 | | // Filters = keep! [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | for i in (0..10).filter(|x| x % 2 == 0) { [INFO] [stdout] ... | [INFO] [stdout] 106 | | println!("sum = {}", sum); [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | / fn main () { [INFO] [stdout] 112 | | enum TrafficLight { [INFO] [stdout] 113 | | Red, [INFO] [stdout] 114 | | Yellow, [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] 123 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | / fn main () { [INFO] [stdout] 128 | | enum GameType { [INFO] [stdout] 129 | | SinglePlayer, [INFO] [stdout] 130 | | MultiPlayer(u32), [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] 141 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | / fn main () { [INFO] [stdout] 146 | | let b: Option<&str> = None; [INFO] [stdout] 147 | | match b { [INFO] [stdout] 148 | | Some(name) => { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] 155 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | / fn main () { [INFO] [stdout] 161 | | let numstr = "florp"; [INFO] [stdout] 162 | | // parse = grab a number [INFO] [stdout] 163 | | let num = numstr.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 168 | | println!("Answer is {}", answer); [INFO] [stdout] 169 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | / fn main () { [INFO] [stdout] 174 | | fn add_five_to_string(s: String) -> [INFO] [stdout] 175 | | Result { [INFO] [stdout] 176 | | let ans = try!(s.parse::()) + 5; [INFO] [stdout] 177 | | Ok(ans) [INFO] [stdout] 178 | | } [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:183:1 [INFO] [stdout] | [INFO] [stdout] 183 | / fn main () { [INFO] [stdout] 184 | | let v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] 185 | | let piece = &v[3..]; [INFO] [stdout] 186 | | println!("piece of v = {:?}", piece); [INFO] [stdout] 187 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | / fn main () { [INFO] [stdout] 199 | | let s = String::from("Call me Ishmael blah blah..."); [INFO] [stdout] 200 | | let part = &s[0..4]; [INFO] [stdout] 201 | | println!("part is '{}'", part); [INFO] [stdout] 202 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:206:1 [INFO] [stdout] | [INFO] [stdout] 206 | / fn main() { [INFO] [stdout] 207 | | let v = vec![1, 2, 3]; [INFO] [stdout] 208 | | println!("v is valid here! {:?}", v); [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | / fn main() { [INFO] [stdout] 214 | | let v = vec![1, 2, 3]; [INFO] [stdout] 215 | | print_vec(v); [INFO] [stdout] 216 | | // print once, then panics since the ownership is given away [INFO] [stdout] 217 | | print_vec(v); [INFO] [stdout] 218 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | / fn main() { [INFO] [stdout] 227 | | let v = vec![1, 2, 3]; [INFO] [stdout] 228 | | print_vec(&v[..]); [INFO] [stdout] 229 | | print_vec(&v[..]); [INFO] [stdout] 230 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 237 | / fn main() { [INFO] [stdout] 238 | | let mut v = vec![1, 2, 3]; [INFO] [stdout] 239 | | change_vec(&mut v[..]); [INFO] [stdout] 240 | | change_vec(&mut v[..]); [INFO] [stdout] 241 | | println!("v is {:?}", v); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:249:1 [INFO] [stdout] | [INFO] [stdout] 249 | / fn main() { [INFO] [stdout] 250 | | let mut v = vec![1, 2, 3]; [INFO] [stdout] 251 | | let f = &v[0]; [INFO] [stdout] 252 | | v.clear(); [INFO] [stdout] 253 | | println!("What would f be? {}", f); [INFO] [stdout] 254 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:249:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 249 | 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] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | let ans = try!(s.parse::()) + 5; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | 0...12 => println!("You may see G or PG movies"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | 13...16 => println!("You may see G, PG, or PG-13 movies"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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 | | println!("Lots: {}", add_fifty(100)); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / fn main() { [INFO] [stdout] 21 | | let age = 13u32; [INFO] [stdout] 22 | | if age < 13 { [INFO] [stdout] 23 | | println!("You may see G or PG movies"); [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / fn main() { [INFO] [stdout] 36 | | let age = 13u32; [INFO] [stdout] 37 | | match age { [INFO] [stdout] 38 | | 0...12 => println!("You may see G or PG movies"), [INFO] [stdout] ... | [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / fn main () { [INFO] [stdout] 51 | | let mut color = [255, 0, 255]; [INFO] [stdout] 52 | | color[0] = 100; [INFO] [stdout] 53 | | println!("The color is {:#?}", color); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | / fn main() { [INFO] [stdout] 59 | | panic!("aaaaa!"); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / fn main () { [INFO] [stdout] 65 | | let color = [255, 0, 255]; [INFO] [stdout] 66 | | let index = 9; [INFO] [stdout] 67 | | println!("The 10th element is {:?}", color[index]); [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / fn main () { [INFO] [stdout] 73 | | let mut prices = vec![30, 100, 2]; [INFO] [stdout] 74 | | prices[0] = 25; [INFO] [stdout] 75 | | prices.push(40); [INFO] [stdout] 76 | | println!("All the prices are: {:?}", prices); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | / fn main () { [INFO] [stdout] 82 | | let names = vec!["Carol", "Jake", "Marylou", "Bruce"]; [INFO] [stdout] 83 | | for name in names.iter() { [INFO] [stdout] 84 | | println!("Hi {}!", name); [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | / fn main () { [INFO] [stdout] 91 | | // Filters = keep! [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | for i in (0..10).filter(|x| x % 2 == 0) { [INFO] [stdout] ... | [INFO] [stdout] 106 | | println!("sum = {}", sum); [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | / fn main () { [INFO] [stdout] 112 | | enum TrafficLight { [INFO] [stdout] 113 | | Red, [INFO] [stdout] 114 | | Yellow, [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] 123 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | / fn main () { [INFO] [stdout] 128 | | enum GameType { [INFO] [stdout] 129 | | SinglePlayer, [INFO] [stdout] 130 | | MultiPlayer(u32), [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] 141 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | / fn main () { [INFO] [stdout] 146 | | let b: Option<&str> = None; [INFO] [stdout] 147 | | match b { [INFO] [stdout] 148 | | Some(name) => { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] 155 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | / fn main () { [INFO] [stdout] 161 | | let numstr = "florp"; [INFO] [stdout] 162 | | // parse = grab a number [INFO] [stdout] 163 | | let num = numstr.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 168 | | println!("Answer is {}", answer); [INFO] [stdout] 169 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | / fn main () { [INFO] [stdout] 174 | | fn add_five_to_string(s: String) -> [INFO] [stdout] 175 | | Result { [INFO] [stdout] 176 | | let ans = try!(s.parse::()) + 5; [INFO] [stdout] 177 | | Ok(ans) [INFO] [stdout] 178 | | } [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:183:1 [INFO] [stdout] | [INFO] [stdout] 183 | / fn main () { [INFO] [stdout] 184 | | let v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] 185 | | let piece = &v[3..]; [INFO] [stdout] 186 | | println!("piece of v = {:?}", piece); [INFO] [stdout] 187 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | / fn main () { [INFO] [stdout] 199 | | let s = String::from("Call me Ishmael blah blah..."); [INFO] [stdout] 200 | | let part = &s[0..4]; [INFO] [stdout] 201 | | println!("part is '{}'", part); [INFO] [stdout] 202 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:206:1 [INFO] [stdout] | [INFO] [stdout] 206 | / fn main() { [INFO] [stdout] 207 | | let v = vec![1, 2, 3]; [INFO] [stdout] 208 | | println!("v is valid here! {:?}", v); [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | / fn main() { [INFO] [stdout] 214 | | let v = vec![1, 2, 3]; [INFO] [stdout] 215 | | print_vec(v); [INFO] [stdout] 216 | | // print once, then panics since the ownership is given away [INFO] [stdout] 217 | | print_vec(v); [INFO] [stdout] 218 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | / fn main() { [INFO] [stdout] 227 | | let v = vec![1, 2, 3]; [INFO] [stdout] 228 | | print_vec(&v[..]); [INFO] [stdout] 229 | | print_vec(&v[..]); [INFO] [stdout] 230 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 237 | / fn main() { [INFO] [stdout] 238 | | let mut v = vec![1, 2, 3]; [INFO] [stdout] 239 | | change_vec(&mut v[..]); [INFO] [stdout] 240 | | change_vec(&mut v[..]); [INFO] [stdout] 241 | | println!("v is {:?}", v); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0136]: multiple `main` functions [INFO] [stdout] --> src/main.rs:249:1 [INFO] [stdout] | [INFO] [stdout] 249 | / fn main() { [INFO] [stdout] 250 | | let mut v = vec![1, 2, 3]; [INFO] [stdout] 251 | | let f = &v[0]; [INFO] [stdout] 252 | | v.clear(); [INFO] [stdout] 253 | | println!("What would f be? {}", f); [INFO] [stdout] 254 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:228:15 [INFO] [stdout] | [INFO] [stdout] 228 | print_vec(&v[..]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[{integer}]` [INFO] [stdout] | help: try using a conversion method: `(&v[..]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&[{integer}]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:228:15 [INFO] [stdout] | [INFO] [stdout] 228 | print_vec(&v[..]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[{integer}]` [INFO] [stdout] | help: try using a conversion method: `(&v[..]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&[{integer}]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:229:15 [INFO] [stdout] | [INFO] [stdout] 229 | print_vec(&v[..]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[{integer}]` [INFO] [stdout] | help: try using a conversion method: `(&v[..]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&[{integer}]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:229:15 [INFO] [stdout] | [INFO] [stdout] 229 | print_vec(&v[..]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[{integer}]` [INFO] [stdout] | help: try using a conversion method: `(&v[..]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&[{integer}]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0136, E0308, E0428. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0136`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0136, E0308, E0428. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0136`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustbridge-pittsburgh` [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "dcf95e76b2fed8f1711432c86c327c5e252e782fdd6c932e6f8a8ba04de2315f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcf95e76b2fed8f1711432c86c327c5e252e782fdd6c932e6f8a8ba04de2315f", kill_on_drop: false }` [INFO] [stdout] dcf95e76b2fed8f1711432c86c327c5e252e782fdd6c932e6f8a8ba04de2315f