[INFO] cloning repository https://github.com/ogham/dog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ogham/dog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fogham%2Fdog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fogham%2Fdog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 721440b12ef01a812abe5dc6ced69af6e221fad5 [INFO] checking ogham/dog against try#f6d7c613ae2d161ff37dbc63cc5abd809c878597 for pr-83850 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fogham%2Fdog" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ogham/dog on toolchain f6d7c613ae2d161ff37dbc63cc5abd809c878597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6d7c613ae2d161ff37dbc63cc5abd809c878597" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ogham/dog [INFO] finished tweaking git repo https://github.com/ogham/dog [INFO] tweaked toml for git repo https://github.com/ogham/dog written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/ogham/dog already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6d7c613ae2d161ff37dbc63cc5abd809c878597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+f6d7c613ae2d161ff37dbc63cc5abd809c878597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee5c4888fd29f2183ce182e356f6ddc40fe8848dbab76cb928c930651069d5cf [INFO] running `Command { std: "docker" "start" "-a" "ee5c4888fd29f2183ce182e356f6ddc40fe8848dbab76cb928c930651069d5cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee5c4888fd29f2183ce182e356f6ddc40fe8848dbab76cb928c930651069d5cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee5c4888fd29f2183ce182e356f6ddc40fe8848dbab76cb928c930651069d5cf", kill_on_drop: false }` [INFO] [stdout] ee5c4888fd29f2183ce182e356f6ddc40fe8848dbab76cb928c930651069d5cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+f6d7c613ae2d161ff37dbc63cc5abd809c878597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1dce9d1f51b235f50b40c53401036517da9768d10dec04ad2170dfaa28953219 [INFO] running `Command { std: "docker" "start" "-a" "1dce9d1f51b235f50b40c53401036517da9768d10dec04ad2170dfaa28953219", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking unic-idna-punycode v0.9.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking diff v0.1.12 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking pretty_assertions v0.7.1 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking unic-ucd-hangul v0.9.0 [INFO] [stderr] Checking unic-idna-mapping v0.9.0 [INFO] [stderr] Checking unic-ucd-bidi v0.9.0 [INFO] [stderr] Checking unic-ucd-normal v0.9.0 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Checking unic-normal v0.9.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling datetime v0.5.1 [INFO] [stderr] Checking unic-idna v0.9.0 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Compiling dog v0.2.0-pre (/opt/rustwide/workdir) [INFO] [stderr] Checking dns v0.2.0-pre (/opt/rustwide/workdir/dns) [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/a.rs:55:44 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(A::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/a.rs:65:44 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(A::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/a.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(A::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.8.3 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/a.rs:82:31 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(A::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/a.rs:92:31 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!(A::read(4, &mut Cursor::new(buf)), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/aaaa.rs:56:47 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(AAAA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 16]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 16]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/aaaa.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 68 | assert_eq!(AAAA::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 17]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 17]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/aaaa.rs:78:47 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(AAAA::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/aaaa.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(AAAA::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/aaaa.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(AAAA::read(16, &mut Cursor::new(buf)), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/caa.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(CAA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 22]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 22]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/caa.rs:94:46 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(CAA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 22]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 22]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/caa.rs:111:46 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(CAA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/caa.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | assert_eq!(CAA::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/caa.rs:131:34 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(CAA::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/cname.rs:53:48 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(CNAME::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 10]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 10]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/cname.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(CNAME::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/cname.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(CNAME::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/cname.rs:82:36 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(CNAME::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui48.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(EUI48::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 6]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 6]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui48.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(EUI48::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui48.rs:84:48 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(EUI48::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 7]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 7]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui48.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(EUI48::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui48.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(EUI48::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui64.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(EUI64::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 8]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui64.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(EUI64::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui64.rs:84:48 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(EUI64::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 9]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 9]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui64.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(EUI64::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/eui64.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(EUI64::read(8, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/hinfo.rs:77:48 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(HINFO::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 29]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 29]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/hinfo.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 93 | assert_eq!(HINFO::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 8]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/hinfo.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(HINFO::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/hinfo.rs:109:36 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(HINFO::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:257:46 [INFO] [stdout] | [INFO] [stdout] 257 | assert_eq!(LOC::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 16]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 16]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:275:46 [INFO] [stdout] | [INFO] [stdout] 275 | assert_eq!(LOC::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:292:46 [INFO] [stdout] | [INFO] [stdout] 292 | assert_eq!(LOC::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 19]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 19]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:303:46 [INFO] [stdout] | [INFO] [stdout] 303 | assert_eq!(LOC::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 309 | assert_eq!(LOC::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/loc.rs:319:34 [INFO] [stdout] | [INFO] [stdout] 319 | assert_eq!(LOC::read(16, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/mx.rs:63:45 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(MX::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 12]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 12]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/mx.rs:78:32 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(MX::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 7]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 7]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/mx.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(MX::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/mx.rs:94:33 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(MX::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/naptr.rs:116:48 [INFO] [stdout] | [INFO] [stdout] 116 | assert_eq!(NAPTR::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 49]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 49]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/naptr.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(NAPTR::read(11, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 13]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 13]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/naptr.rs:147:35 [INFO] [stdout] | [INFO] [stdout] 147 | assert_eq!(NAPTR::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/naptr.rs:157:36 [INFO] [stdout] | [INFO] [stdout] 157 | assert_eq!(NAPTR::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ns.rs:55:45 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(NS::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 20]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 20]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ns.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | assert_eq!(NS::read(66, &mut Cursor::new(buf)), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ns.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!(NS::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ns.rs:84:33 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(NS::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/openpgpkey.rs:58:53 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!(OPENPGPKEY::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/openpgpkey.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 70 | assert_eq!(OPENPGPKEY::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/openpgpkey.rs:78:40 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(OPENPGPKEY::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/openpgpkey.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(OPENPGPKEY::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/opt.rs:130:30 [INFO] [stdout] | [INFO] [stdout] 130 | assert_eq!(OPT::read(&mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 8]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/record/opt.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn read(c: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/opt.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 151 | assert_eq!(OPT::read(&mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 12]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 12]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/record/opt.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn read(c: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/opt.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | assert_eq!(OPT::read(&mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/record/opt.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn read(c: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/opt.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(OPT::read(&mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/record/opt.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn read(c: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ptr.rs:59:46 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(PTR::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 12]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 12]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ptr.rs:72:33 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(PTR::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ptr.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(PTR::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/ptr.rs:88:34 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(PTR::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/sshfp.rs:78:48 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(SSHFP::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 8]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/sshfp.rs:94:48 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(SSHFP::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/sshfp.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(SSHFP::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/sshfp.rs:115:35 [INFO] [stdout] | [INFO] [stdout] 115 | assert_eq!(SSHFP::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/sshfp.rs:125:35 [INFO] [stdout] | [INFO] [stdout] 125 | assert_eq!(SSHFP::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/soa.rs:108:46 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(SOA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 40]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 40]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/soa.rs:134:34 [INFO] [stdout] | [INFO] [stdout] 134 | assert_eq!(SOA::read(89, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 30]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 30]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/soa.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | assert_eq!(SOA::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/soa.rs:150:34 [INFO] [stdout] | [INFO] [stdout] 150 | assert_eq!(SOA::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/srv.rs:80:46 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(SRV::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 33]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 33]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/srv.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(SRV::read(16, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 11]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 11]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/srv.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(SRV::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/srv.rs:115:34 [INFO] [stdout] | [INFO] [stdout] 115 | assert_eq!(SRV::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/tlsa.rs:87:47 [INFO] [stdout] | [INFO] [stdout] 87 | assert_eq!(TLSA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 9]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 9]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/tlsa.rs:105:47 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(TLSA::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/tlsa.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(TLSA::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 3]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/tlsa.rs:128:34 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(TLSA::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/tlsa.rs:138:34 [INFO] [stdout] | [INFO] [stdout] 138 | assert_eq!(TLSA::read(6, &mut Cursor::new(buf)), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 1]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:86:46 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(TXT::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 7]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 7]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:124:46 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(TXT::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 261]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 261]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:171:46 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(TXT::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 255]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 255]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:196:46 [INFO] [stdout] | [INFO] [stdout] 196 | assert_eq!(TXT::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 14]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 14]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | assert_eq!(TXT::read(2, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 7]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 7]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:218:33 [INFO] [stdout] | [INFO] [stdout] 218 | assert_eq!(TXT::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/txt.rs:228:34 [INFO] [stdout] | [INFO] [stdout] 228 | assert_eq!(TXT::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/uri.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(URI::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 20]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 20]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/uri.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 89 | assert_eq!(URI::read(buf.len() as _, &mut Cursor::new(buf)).unwrap(), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 5]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 5]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/uri.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(URI::read(buf.len() as _, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 4]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/uri.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(URI::read(0, &mut Cursor::new(&[])), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array of 0 elements [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[_; 0]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> dns/src/record/uri.rs:120:34 [INFO] [stdout] | [INFO] [stdout] 120 | assert_eq!(URI::read(23, &mut Cursor::new(buf)), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found array `[{integer}; 2]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::io::Cursor<&[u8]>` [INFO] [stdout] found mutable reference `&mut std::io::Cursor<&[{integer}; 2]>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> dns/src/wire.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn read(len: u16, c: &mut Cursor<&[u8]>) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 93 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dns` due to 94 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "1dce9d1f51b235f50b40c53401036517da9768d10dec04ad2170dfaa28953219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dce9d1f51b235f50b40c53401036517da9768d10dec04ad2170dfaa28953219", kill_on_drop: false }` [INFO] [stdout] 1dce9d1f51b235f50b40c53401036517da9768d10dec04ad2170dfaa28953219