[INFO] cloning repository https://github.com/pcrama/rsingbuffer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pcrama/rsingbuffer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b0af5f29c7a6cfd69b8ad1653ba1996c3fdfcd3 [INFO] testing pcrama/rsingbuffer against try#7af779037716ae4125ceabb429791b4cf5dd0a43 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pcrama/rsingbuffer on toolchain 7af779037716ae4125ceabb429791b4cf5dd0a43 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pcrama/rsingbuffer [INFO] finished tweaking git repo https://github.com/pcrama/rsingbuffer [INFO] tweaked toml for git repo https://github.com/pcrama/rsingbuffer written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pcrama/rsingbuffer already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ea3bfaa61a37298c892e5de8942b254b3c22e7a96ad737a96a1832566814d63 [INFO] running `Command { std: "docker" "start" "-a" "3ea3bfaa61a37298c892e5de8942b254b3c22e7a96ad737a96a1832566814d63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ea3bfaa61a37298c892e5de8942b254b3c22e7a96ad737a96a1832566814d63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ea3bfaa61a37298c892e5de8942b254b3c22e7a96ad737a96a1832566814d63", kill_on_drop: false }` [INFO] [stdout] 3ea3bfaa61a37298c892e5de8942b254b3c22e7a96ad737a96a1832566814d63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3417289b38f74c35c224e1f9cb806b4950d9f0d0d4d28e787fbffb4853cd0f4 [INFO] running `Command { std: "docker" "start" "-a" "d3417289b38f74c35c224e1f9cb806b4950d9f0d0d4d28e787fbffb4853cd0f4", kill_on_drop: false }` [INFO] [stderr] Compiling ringbuffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `RingBuffer` is more private than the item `new` [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(size: usize) -> RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RingBuffer` is more private than the item `freeze` [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RingBufferView` is more private than the item `freeze` [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBufferView` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `start`, `end`, and `capacity` are never read [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 4 | buffer: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | start: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ring_buffer` is never read [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct RingBufferView { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 11 | ring_buffer: RingBuffer [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `at` and `thaw` are never used [INFO] [stdout] --> src/lib.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl RingBufferView { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 29 | pub fn at<'a>(&'a self, idx: usize) -> Option<&'a A> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn thaw(self) -> RingBuffer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `peek_first`, `peek_last`, and `push` are never used [INFO] [stdout] --> src/lib.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl RingBuffer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 46 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn push(&mut self, val: A) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "d3417289b38f74c35c224e1f9cb806b4950d9f0d0d4d28e787fbffb4853cd0f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3417289b38f74c35c224e1f9cb806b4950d9f0d0d4d28e787fbffb4853cd0f4", kill_on_drop: false }` [INFO] [stdout] d3417289b38f74c35c224e1f9cb806b4950d9f0d0d4d28e787fbffb4853cd0f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 292377fe7a4ce8e6f90c6f155d69e0662d609b25bedce3161f3507cbe6a4635f [INFO] running `Command { std: "docker" "start" "-a" "292377fe7a4ce8e6f90c6f155d69e0662d609b25bedce3161f3507cbe6a4635f", kill_on_drop: false }` [INFO] [stdout] warning: type `RingBuffer` is more private than the item `new` [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(size: usize) -> RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ringbuffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `RingBuffer` is more private than the item `freeze` [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RingBufferView` is more private than the item `freeze` [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RingBufferView` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct RingBufferView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `start`, `end`, and `capacity` are never read [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct RingBuffer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 4 | buffer: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | start: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ring_buffer` is never read [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct RingBufferView { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 11 | ring_buffer: RingBuffer [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `at` and `thaw` are never used [INFO] [stdout] --> src/lib.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl RingBufferView { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 29 | pub fn at<'a>(&'a self, idx: usize) -> Option<&'a A> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn thaw(self) -> RingBuffer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `peek_first`, `peek_last`, and `push` are never used [INFO] [stdout] --> src/lib.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl RingBuffer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 46 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn push(&mut self, val: A) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: comparison operators cannot be chained [INFO] [stdout] --> src/lib.rs:113:23 [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(new<&str>(5).len(), 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(new::<&str>(5).len(), 0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected `.` [INFO] [stdout] --> src/lib.rs:113:32 [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(new<&str>(5).len(), 0); [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] | [INFO] [stdout] note: while trying to match `,` [INFO] [stdout] --> /rustc/7af779037716ae4125ceabb429791b4cf5dd0a43/library/core/src/macros/mod.rs:43:16 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(new::<&str>(23).peek_first(idint), None); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a &str) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:123:45 [INFO] [stdout] | [INFO] [stdout] 123 | assert_eq!(new::(3).peek_last(idint), None); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a bool) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:130:34 [INFO] [stdout] | [INFO] [stdout] 130 | assert_eq!(rb.peek_first(idint), Some(3)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:131:33 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(rb.peek_last(idint), Some(3)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:133:34 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(rb.peek_first(idint), Some(3)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | assert_eq!(rb.peek_last(idint), Some(4)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 136 | assert_eq!(rb.peek_first(idint), Some(3)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:137:33 [INFO] [stdout] | [INFO] [stdout] 137 | assert_eq!(rb.peek_last(idint), Some(5)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:139:34 [INFO] [stdout] | [INFO] [stdout] 139 | assert_eq!(rb.peek_first(idint), Some(4)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | assert_eq!(rb.peek_last(idint), Some(6)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:142:34 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(rb.peek_first(idint), Some(5)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:143:33 [INFO] [stdout] | [INFO] [stdout] 143 | assert_eq!(rb.peek_last(idint), Some(7)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(rb.peek_first(idint), Some(6)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | assert_eq!(rb.peek_last(idint), Some(8)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:148:34 [INFO] [stdout] | [INFO] [stdout] 148 | assert_eq!(rb.peek_first(idint), Some(7)); [INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | assert_eq!(rb.peek_last(idint), Some(9)); [INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _` [INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option { [INFO] [stdout] | ^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ringbuffer` (lib test) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "292377fe7a4ce8e6f90c6f155d69e0662d609b25bedce3161f3507cbe6a4635f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "292377fe7a4ce8e6f90c6f155d69e0662d609b25bedce3161f3507cbe6a4635f", kill_on_drop: false }` [INFO] [stdout] 292377fe7a4ce8e6f90c6f155d69e0662d609b25bedce3161f3507cbe6a4635f