[INFO] fetching crate fixed-buffer 1.0.2... [INFO] checking fixed-buffer-1.0.2 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate fixed-buffer 1.0.2 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate fixed-buffer 1.0.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate fixed-buffer 1.0.2 [INFO] tweaked toml for crates.io crate fixed-buffer 1.0.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate fixed-buffer 1.0.2 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fixed-buffer 1.0.2 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56c0814e0b5f5b1f8f0079803fb0fb4e65570ccef1adf2a321566f75ec62040a [INFO] running `Command { std: "docker" "start" "-a" "56c0814e0b5f5b1f8f0079803fb0fb4e65570ccef1adf2a321566f75ec62040a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56c0814e0b5f5b1f8f0079803fb0fb4e65570ccef1adf2a321566f75ec62040a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56c0814e0b5f5b1f8f0079803fb0fb4e65570ccef1adf2a321566f75ec62040a", kill_on_drop: false }` [INFO] [stdout] 56c0814e0b5f5b1f8f0079803fb0fb4e65570ccef1adf2a321566f75ec62040a [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f53a7fcb9eb700a665dfebf97000416ef35c2d2f8b4cbc07cbf73376f26b838 [INFO] running `Command { std: "docker" "start" "-a" "8f53a7fcb9eb700a665dfebf97000416ef35c2d2f8b4cbc07cbf73376f26b838", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling safe-proc-macro2 v1.0.95 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Checking async-executor v1.13.2 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking safina-sync v0.2.5 [INFO] [stderr] Checking safina-threadpool v0.2.5 [INFO] [stderr] Checking safina-timer v0.1.13 [INFO] [stderr] Checking safina-executor v0.3.4 [INFO] [stderr] Checking crc v3.3.0 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking read-write-ext v0.1.1 [INFO] [stderr] Checking fixed-buffer v1.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking async-fs v2.1.2 [INFO] [stderr] Compiling safe-quote v1.0.40 [INFO] [stderr] Compiling safina-async-test-core v0.1.5 [INFO] [stderr] Checking safina-async-test v0.1.14 [INFO] [stderr] Checking polling v3.8.0 [INFO] [stderr] Checking async-io v2.4.1 [INFO] [stderr] Checking async-signal v0.2.11 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking async-net v2.0.0 [INFO] [stderr] Checking async-process v2.3.1 [INFO] [stderr] Checking async-std v1.13.1 [INFO] [stderr] Checking smol v2.0.2 [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(0, FixedBuf::from(*b"").read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: ReadExt` or `FixedBuf<0>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<0>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(0, FixedBuf::from(*b"").read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(0, buf.read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: ReadExt` or `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<1>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(0, buf.read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(0, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(0, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: ReadExt` or `FixedBuf<0>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<0>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: ReadExt` or `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<1>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: ReadExt` or `FixedBuf<2>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<2>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: ReadExt` or `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<1>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncReadExt` or `FixedBuf<3>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: ReadExt` or `FixedBuf<2>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<2>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: ReadExt` or `FixedBuf<3>: async_std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: async_std::io::Read` [INFO] [stdout] which is required by `FixedBuf<3>: ReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(2, buf.write(b"ab").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(1, buf.write(b"cd").await.unwrap()); // Fills buffer, "d" not written. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(2, buf.write(b"ab").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: WriteExt` or `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] which is required by `FixedBuf<3>: WriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | buf.write(b"d").await.unwrap_err(); // Error, buffer is full. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(1, buf.write(b"cd").await.unwrap()); // Fills buffer, "d" not written. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: WriteExt` or `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] which is required by `FixedBuf<3>: WriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:69:23 [INFO] [stdout] | [INFO] [stdout] 69 | assert_eq!(1, buf.write(b"a").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `flush` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | buf.flush().await.unwrap(); [INFO] [stdout] | ^^^^^ method cannot be called on `FixedBuf<3>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `close` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/futures_io.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | buf.close().await.unwrap(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/async_std.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | buf.write(b"d").await.unwrap_err(); // Error, buffer is full. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: WriteExt` or `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: async_std::io::Write` [INFO] [stdout] which is required by `FixedBuf<3>: WriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fixed-buffer` (test "async_std") due to 11 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `fixed-buffer` (test "futures_io") due to 14 previous errors [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(0, FixedBuf::from(*b"").read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(0, buf.read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(0, FixedBuf::from(*b"").read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(0, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(0, buf.read(&mut [b'x'; 0]).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<0>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(0, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<0>: AsyncReadExt` or `FixedBuf<0>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<0>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<0>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<1>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(1, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<1>: AsyncReadExt` or `FixedBuf<1>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<1>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<1>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<2>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<2>: AsyncReadExt` or `FixedBuf<2>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<2>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<2>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncReadExt` or `FixedBuf<3>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(2, buf.read(&mut data).await.unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncReadExt` or `FixedBuf<3>: AsyncRead` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncRead` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncReadExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(2, buf.write(b"ab").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(2, buf.write(b"ab").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(1, buf.write(b"cd").await.unwrap()); // Fills buffer, "d" not written. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(1, buf.write(b"cd").await.unwrap()); // Fills buffer, "d" not written. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | buf.write(b"d").await.unwrap_err(); // Error, buffer is full. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/smol.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | buf.write(b"d").await.unwrap_err(); // Error, buffer is full. [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:68:23 [INFO] [stdout] | [INFO] [stdout] 68 | assert_eq!(1, buf.write(b"a").await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `flush` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | buf.flush().await.unwrap(); [INFO] [stdout] | ^^^^^ method cannot be called on `FixedBuf<3>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `shutdown` exists for struct `FixedBuf<3>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/tokio.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | buf.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `FixedBuf<3>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct FixedBuf { [INFO] [stdout] | -------------------------------------- doesn't satisfy `FixedBuf<3>: AsyncWriteExt` or `FixedBuf<3>: AsyncWrite` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FixedBuf<3>: AsyncWrite` [INFO] [stdout] which is required by `FixedBuf<3>: AsyncWriteExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fixed-buffer` (test "smol") due to 11 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fixed-buffer` (test "tokio") due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "8f53a7fcb9eb700a665dfebf97000416ef35c2d2f8b4cbc07cbf73376f26b838", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f53a7fcb9eb700a665dfebf97000416ef35c2d2f8b4cbc07cbf73376f26b838", kill_on_drop: false }` [INFO] [stdout] 8f53a7fcb9eb700a665dfebf97000416ef35c2d2f8b4cbc07cbf73376f26b838