[INFO] cloning repository https://github.com/nrxus/advent_2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nrxus/advent_2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f7b9bc6e61ad765717d77e17cb205c55563b07c [INFO] checking nrxus/advent_2018 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nrxus/advent_2018 on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nrxus/advent_2018 [INFO] finished tweaking git repo https://github.com/nrxus/advent_2018 [INFO] tweaked toml for git repo https://github.com/nrxus/advent_2018 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/nrxus/advent_2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crc32fast v1.1.1 [INFO] [stderr] Downloaded strum v0.13.0 [INFO] [stderr] Downloaded strum_macros v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f9c7b1689599715ce0d886a3ef349e5bfbc6a23b0713dff5b80a4ef760c5aeb7 [INFO] running `Command { std: "docker" "start" "-a" "f9c7b1689599715ce0d886a3ef349e5bfbc6a23b0713dff5b80a4ef760c5aeb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9c7b1689599715ce0d886a3ef349e5bfbc6a23b0713dff5b80a4ef760c5aeb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9c7b1689599715ce0d886a3ef349e5bfbc6a23b0713dff5b80a4ef760c5aeb7", kill_on_drop: false }` [INFO] [stdout] f9c7b1689599715ce0d886a3ef349e5bfbc6a23b0713dff5b80a4ef760c5aeb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da21de6b4bb8729c9ab27576d86050420d14c393db01b70cb285352fe69fe20b [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" "da21de6b4bb8729c9ab27576d86050420d14c393db01b70cb285352fe69fe20b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking futures v0.1.25 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Checking slab v0.4.1 [INFO] [stderr] Checking lazycell v1.2.0 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Compiling crc32fast v1.1.1 [INFO] [stderr] Checking string v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Checking safemem v0.3.0 [INFO] [stderr] Compiling unicode-segmentation v1.2.1 [INFO] [stderr] Checking reexport-proc-macro v1.0.5 [INFO] [stderr] Checking array-macro v1.0.2 [INFO] [stderr] Checking strum v0.13.0 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking smallvec v0.6.7 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking libflate v0.1.19 [INFO] [stderr] Checking crossbeam-deque v0.6.2 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling native-tls v0.2.2 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking rand v0.6.1 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking phf v0.7.23 [INFO] [stderr] Checking tokio-executor v0.1.5 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Checking cookie v0.11.0 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking tokio-current-thread v0.1.4 [INFO] [stderr] Checking tokio-timer v0.2.8 [INFO] [stderr] Checking tokio-io v0.1.10 [INFO] [stderr] Checking http v0.1.14 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking uuid v0.7.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking tokio-threadpool v0.1.9 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking regex v1.1.0 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Checking tokio-reactor v0.1.7 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Checking tokio-fs v0.1.4 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Checking tokio-tcp v0.1.2 [INFO] [stderr] Checking tokio-uds v0.2.4 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio v0.1.13 [INFO] [stderr] Compiling enum-map-derive v0.4.0 [INFO] [stderr] Checking h2 v0.1.13 [INFO] [stderr] Checking enum-map v0.4.1 [INFO] [stderr] Checking serde_urlencoded v0.5.4 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Compiling strum_macros v0.13.0 [INFO] [stderr] Checking hyper v0.12.16 [INFO] [stderr] Checking hyper-tls v0.3.1 [INFO] [stderr] Checking reqwest v0.9.5 [INFO] [stderr] Checking advent_2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ten_a.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | type Err = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/twenty_five.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | type Err = std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/twenty_three_b.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | / array![|i| Region { [INFO] [stdout] 262 | | bounds: boxes[i], [INFO] [stdout] 263 | | nanobots: self.nanobots.iter().filter(|n| n.intersects(&boxes[i])).cloned().collect() [INFO] [stdout] 264 | | }; 8] [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:102:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:105:24 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] 105 | | let mut size = line.next()?.trim().split('x'); [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/guard_schedule.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 70 | / fn try_from(raw: &'s str) -> Result { [INFO] [stdout] 71 | | let date = &raw[1..17]; [INFO] [stdout] 72 | | let action = &raw[19..]; [INFO] [stdout] 73 | | if action.contains("falls asleep") { [INFO] [stdout] ... | [INFO] [stdout] 78 | | let id = action[7..].split(' ').nth(0)?.parse::()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, EntryParseError>` [INFO] [stdout] 79 | | Ok(Entry::BeginShift(date, id)) [INFO] [stdout] 80 | | } [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, EntryParseError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_2018` [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 106 | | let right = left + size.next()?.parse::()?; [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 107 | | let bottom = top + size.next()?.parse::()?; [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 93 | | .captures(input.next()?)? [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 93 | || .captures(input.next()?)? [INFO] [stdout] | ||_____________________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 93 | || .captures(input.next()?)? [INFO] [stdout] 94 | || .name("ip")? [INFO] [stdout] | ||________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:117:20 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 117 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_two_a.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 42 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 43 | | let regex = Regex::new( [INFO] [stdout] 44 | | r"depth: (?P\d+) [INFO] [stdout] 45 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] 46 | | )?; [INFO] [stdout] 47 | | let caps = regex.captures(input)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(Cave { regions, cols }) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 118 | | let instruction = caps.name("instruction")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | let a = caps.name("a")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_two_a.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 42 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 43 | | let regex = Regex::new( [INFO] [stdout] 44 | | r"depth: (?P\d+) [INFO] [stdout] 45 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 48 | | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(Cave { regions, cols }) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 120 | | let b = caps.name("b")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_two_a.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 42 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 43 | | let regex = Regex::new( [INFO] [stdout] 44 | | r"depth: (?P\d+) [INFO] [stdout] 45 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 49 | | let cols = caps.name("tx")?.as_str().parse::()? + 1; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(Cave { regions, cols }) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_two_a.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 42 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 43 | | let regex = Regex::new( [INFO] [stdout] 44 | | r"depth: (?P\d+) [INFO] [stdout] 45 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 50 | | let rows = caps.name("ty")?.as_str().parse::()? + 1; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(Cave { regions, cols }) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 93 | | .captures(input.next()?)? [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 93 | || .captures(input.next()?)? [INFO] [stdout] | ||_____________________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 93 | || .captures(input.next()?)? [INFO] [stdout] 94 | || .name("ip")? [INFO] [stdout] | ||________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:117:20 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 117 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_three_b.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a closure that returns `Result` [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 118 | | let instruction = caps.name("instruction")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | let a = caps.name("a")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_three_b.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a closure that returns `Result` [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 120 | | let b = caps.name("b")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/nineteen_a.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_three_b.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a closure that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_three_b.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 19 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a closure that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_three_b.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 19 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] 20 | | let radius = caps.name("r")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a closure that returns `Result` [INFO] [stdout] 21 | | let pos = (x, y, z); [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 141 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 142 | | let b0: u16 = caps.name("b0")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 143 | | let b1: u16 = caps.name("b1")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:144:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 144 | | let b2: u16 = caps.name("b2")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 145 | | let b3: u16 = caps.name("b3")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 146 | | let i0: u16 = caps.name("i0")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 147 | | let i1: u16 = caps.name("i1")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 148 | | let i2: u16 = caps.name("i2")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 149 | | let i3: u16 = caps.name("i3")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 150 | | let a0: u16 = caps.name("a0")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 151 | | let a1: u16 = caps.name("a1")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:152:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 152 | | let a2: u16 = caps.name("a2")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/sixteen_b.rs:153:23 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 153 | | let a3: u16 = caps.name("a3")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:115:23 [INFO] [stdout] | [INFO] [stdout] 112 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 113 | | let mut input = input.lines(); [INFO] [stdout] 114 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 115 | | .captures(input.next()?)? [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 126 | | }) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 112 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 113 | | let mut input = input.lines(); [INFO] [stdout] 114 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 115 | || .captures(input.next()?)? [INFO] [stdout] | ||_____________________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 126 | | }) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 112 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 113 | | let mut input = input.lines(); [INFO] [stdout] 114 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] | |_________________________^ [INFO] [stdout] 115 | || .captures(input.next()?)? [INFO] [stdout] 116 | || .name("ip")? [INFO] [stdout] | ||________________________^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 126 | | }) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:139:20 [INFO] [stdout] | [INFO] [stdout] 133 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 134 | | lazy_static! { [INFO] [stdout] 135 | | static ref RE: Regex = [INFO] [stdout] 136 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 139 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(Line { instruction, dst }) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 133 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 134 | | lazy_static! { [INFO] [stdout] 135 | | static ref RE: Regex = [INFO] [stdout] 136 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 140 | | let instruction = caps.name("instruction")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(Line { instruction, dst }) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 133 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 134 | | lazy_static! { [INFO] [stdout] 135 | | static ref RE: Regex = [INFO] [stdout] 136 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 141 | | let a = caps.name("a")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(Line { instruction, dst }) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 133 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 134 | | lazy_static! { [INFO] [stdout] 135 | | static ref RE: Regex = [INFO] [stdout] 136 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 142 | | let b = caps.name("b")?.as_str(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(Line { instruction, dst }) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/twenty_one_b.rs:143:26 [INFO] [stdout] | [INFO] [stdout] 133 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 134 | | lazy_static! { [INFO] [stdout] 135 | | static ref RE: Regex = [INFO] [stdout] 136 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 143 | | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(Line { instruction, dst }) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:102:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:105:24 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] 105 | | let mut size = line.next()?.trim().split('x'); [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 106 | | let right = left + size.next()?.parse::()?; [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/three_a.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 107 | | let bottom = top + size.next()?.parse::()?; [INFO] [stdout] | | ^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "da21de6b4bb8729c9ab27576d86050420d14c393db01b70cb285352fe69fe20b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da21de6b4bb8729c9ab27576d86050420d14c393db01b70cb285352fe69fe20b", kill_on_drop: false }` [INFO] [stdout] da21de6b4bb8729c9ab27576d86050420d14c393db01b70cb285352fe69fe20b