[INFO] cloning repository https://github.com/HlinaCZ/wasm-canvas [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HlinaCZ/wasm-canvas" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlinaCZ%2Fwasm-canvas", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlinaCZ%2Fwasm-canvas'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc061089f2a875041a7e1049e7e57b0167278de3 [INFO] checking HlinaCZ/wasm-canvas/bc061089f2a875041a7e1049e7e57b0167278de3 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlinaCZ%2Fwasm-canvas" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HlinaCZ/wasm-canvas on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HlinaCZ/wasm-canvas [INFO] finished tweaking git repo https://github.com/HlinaCZ/wasm-canvas [INFO] tweaked toml for git repo https://github.com/HlinaCZ/wasm-canvas written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HlinaCZ/wasm-canvas 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.48 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.48 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.48 [INFO] [stderr] Downloaded wasm-bindgen v0.2.48 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.48 [INFO] [stderr] Downloaded log v0.4.7 [INFO] [stderr] Downloaded wasm-bindgen-webidl v0.2.48 [INFO] [stderr] Downloaded js-sys v0.3.25 [INFO] [stderr] Downloaded num-bigint v0.2.2 [INFO] [stderr] Downloaded bumpalo v2.5.0 [INFO] [stderr] Downloaded web-sys v0.3.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 544af7bed389b43f1e34acb572d0672ce19870db8aef326e596bb0cc66ec71d5 [INFO] running `Command { std: "docker" "start" "-a" "544af7bed389b43f1e34acb572d0672ce19870db8aef326e596bb0cc66ec71d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "544af7bed389b43f1e34acb572d0672ce19870db8aef326e596bb0cc66ec71d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "544af7bed389b43f1e34acb572d0672ce19870db8aef326e596bb0cc66ec71d5", kill_on_drop: false }` [INFO] [stdout] 544af7bed389b43f1e34acb572d0672ce19870db8aef326e596bb0cc66ec71d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8018e4e89a9b8e037e7da758dfcf3cc1f103bbb703333d50f068e6dad135f61 [INFO] running `Command { std: "docker" "start" "-a" "f8018e4e89a9b8e037e7da758dfcf3cc1f103bbb703333d50f068e6dad135f61", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.48 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling cc v1.0.37 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling bumpalo v2.5.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rustc-demangle v0.1.15 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling wasm-bindgen v0.2.48 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling sourcefile v0.1.4 [INFO] [stderr] Compiling backtrace-sys v0.1.30 [INFO] [stderr] Compiling weedle v0.10.0 [INFO] [stderr] Compiling backtrace v0.3.32 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.48 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.48 [INFO] [stderr] Compiling wasm-bindgen-webidl v0.2.48 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.48 [INFO] [stderr] Compiling web-sys v0.3.25 [INFO] [stderr] Checking js-sys v0.3.25 [INFO] [stderr] Checking wasm-canvas v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.x` moved due to usage in operator [INFO] [stdout] | move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.x` moved due to usage in operator [INFO] [stdout] | move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | ^^^ move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | ^^^ move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.y` moved due to usage in operator [INFO] [stdout] | move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.y` moved due to usage in operator [INFO] [stdout] | move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | ^^^ move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | ^^^ move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.z` moved due to usage in operator [INFO] [stdout] | move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.z` moved due to usage in operator [INFO] [stdout] | move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | ^^^ move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | ^^^ move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `x` [INFO] [stdout] --> src/geometry.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | - move occurs because `x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `x` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `x` [INFO] [stdout] --> src/geometry.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 22 | let x = b.x - a.x; [INFO] [stdout] | - move occurs because `x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `x` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `y` [INFO] [stdout] --> src/geometry.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | - move occurs because `y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `y` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `y` [INFO] [stdout] --> src/geometry.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 23 | let y = b.y - a.y; [INFO] [stdout] | - move occurs because `y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `y` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `z` [INFO] [stdout] --> src/geometry.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | - move occurs because `z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `z` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `z` [INFO] [stdout] --> src/geometry.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 24 | let z = b.z - a.z; [INFO] [stdout] | - move occurs because `z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | -----^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | `z` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 25 | (((x * x) + (y * y) + (z * z)).to_f64().unwrap()).sqrt() as usize [INFO] [stdout] | - you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 21 | pub fn distance(a: &Point, b: &Point) -> usize { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.x` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.x` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | ^^^ move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | ^^^ move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.y` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.y` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | ^^^ move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | ^^^ move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `two` [INFO] [stdout] --> src/geometry.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 29 | let two = T::one() + T::one(); [INFO] [stdout] | --- move occurs because `two` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 30 | Point { [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- value moved here [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | ^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `two` [INFO] [stdout] --> src/geometry.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 29 | let two = T::one() + T::one(); [INFO] [stdout] | --- move occurs because `two` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] 30 | Point { [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- value moved here [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | ^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 31 | x: (a.x + b.x) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.z` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | -^^^------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | `a.z` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | ^^^ move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | ^^^ move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `two` [INFO] [stdout] --> src/geometry.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 29 | let two = T::one() + T::one(); [INFO] [stdout] | --- move occurs because `two` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- value moved here [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | ^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `two` [INFO] [stdout] --> src/geometry.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 29 | let two = T::one() + T::one(); [INFO] [stdout] | --- move occurs because `two` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- value moved here [INFO] [stdout] 33 | z: (a.z + b.z) / two, [INFO] [stdout] | ^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 32 | y: (a.y + b.y) / two, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 28 | pub fn center(a: &Point, b: &Point) -> Point { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.x` moved due to usage in operator [INFO] [stdout] | move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.x` moved due to usage in operator [INFO] [stdout] | move occurs because `b.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | ^^^ move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | ^^^ move occurs because `a.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 51 | x: b.x - a.x, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.y` moved due to usage in operator [INFO] [stdout] | move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.y` moved due to usage in operator [INFO] [stdout] | move occurs because `b.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | ^^^ move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | ^^^ move occurs because `a.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 52 | y: b.y - a.y, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.z` moved due to usage in operator [INFO] [stdout] | move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | ^^^ move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `b.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | ^^^------ [INFO] [stdout] | | [INFO] [stdout] | `b.z` moved due to usage in operator [INFO] [stdout] | move occurs because `b.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.x` moved due to usage in operator [INFO] [stdout] | move occurs because `self.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `a.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | ^^^ move occurs because `a.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 53 | z: b.z - a.z, [INFO] [stdout] | --- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:28 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.x` moved due to usage in operator [INFO] [stdout] | move occurs because `self.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.y` moved due to usage in operator [INFO] [stdout] | move occurs because `self.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:28 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.x` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:46 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:55 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.z` moved due to usage in operator [INFO] [stdout] | move occurs because `self.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.y` moved due to usage in operator [INFO] [stdout] | move occurs because `self.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:64 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:46 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.y` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:55 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | `self.z` moved due to usage in operator [INFO] [stdout] | move occurs because `self.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.z` which is behind a shared reference [INFO] [stdout] --> src/geometry.rs:59:64 [INFO] [stdout] | [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ^^^^^^ move occurs because `self.z` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/geometry.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vector { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 59 | T::from( (self.x * self.x + self.y * self.y + self.z * self.z).to_f64().unwrap().sqrt() ).unwrap() [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-canvas` (lib) due to 30 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `wasm-canvas` (lib test) due to 30 previous errors [INFO] running `Command { std: "docker" "inspect" "f8018e4e89a9b8e037e7da758dfcf3cc1f103bbb703333d50f068e6dad135f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8018e4e89a9b8e037e7da758dfcf3cc1f103bbb703333d50f068e6dad135f61", kill_on_drop: false }` [INFO] [stdout] f8018e4e89a9b8e037e7da758dfcf3cc1f103bbb703333d50f068e6dad135f61