[INFO] fetching crate facet-json 0.24.16... [INFO] testing facet-json-0.24.16 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate facet-json 0.24.16 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate facet-json 0.24.16 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate facet-json 0.24.16 [INFO] tweaked toml for crates.io crate facet-json 0.24.16 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate facet-json 0.24.16 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate facet-json 0.24.16 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded impls v1.0.3 [INFO] [stderr] Downloaded ariadne v0.5.1 [INFO] [stderr] Downloaded facet-deserialize v0.24.21 [INFO] [stderr] Downloaded facet-core v0.27.15 [INFO] [stderr] Downloaded facet-reflect v0.27.15 [INFO] [stderr] Downloaded facet-serialize v0.24.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c27d6770703e2674d155f0472f103562f02691e77103fd5873f313a39af181e2 [INFO] running `Command { std: "docker" "start" "-a" "c27d6770703e2674d155f0472f103562f02691e77103fd5873f313a39af181e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c27d6770703e2674d155f0472f103562f02691e77103fd5873f313a39af181e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27d6770703e2674d155f0472f103562f02691e77103fd5873f313a39af181e2", kill_on_drop: false }` [INFO] [stdout] c27d6770703e2674d155f0472f103562f02691e77103fd5873f313a39af181e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 3855713e5b8c9717f66605a58fe7891e6b113443ab158bdc83f0bef2d0309ee5 [INFO] running `Command { std: "docker" "start" "-a" "3855713e5b8c9717f66605a58fe7891e6b113443ab158bdc83f0bef2d0309ee5", kill_on_drop: false }` [INFO] [stderr] Compiling owo-colors v4.2.2 [INFO] [stderr] Compiling impls v1.0.3 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling facet-core v0.27.15 [INFO] [stderr] Compiling ariadne v0.5.1 [INFO] [stderr] Compiling facet-reflect v0.27.15 [INFO] [stderr] Compiling facet-deserialize v0.24.21 [INFO] [stderr] Compiling facet-serialize v0.24.16 [INFO] [stderr] Compiling facet-json v0.24.16 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.01s [INFO] running `Command { std: "docker" "inspect" "3855713e5b8c9717f66605a58fe7891e6b113443ab158bdc83f0bef2d0309ee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3855713e5b8c9717f66605a58fe7891e6b113443ab158bdc83f0bef2d0309ee5", kill_on_drop: false }` [INFO] [stdout] 3855713e5b8c9717f66605a58fe7891e6b113443ab158bdc83f0bef2d0309ee5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7e81e2baa13eb0ea34ebec401094e85fecedd60c4d8c7abbc3dbaf19f0c5480e [INFO] running `Command { std: "docker" "start" "-a" "7e81e2baa13eb0ea34ebec401094e85fecedd60c4d8c7abbc3dbaf19f0c5480e", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling camino v1.1.10 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling ordered-float v5.0.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling insta v1.43.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling ulid v1.2.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling facet-core v0.27.15 [INFO] [stderr] Compiling facet-reflect v0.27.15 [INFO] [stderr] Compiling facet-deserialize v0.24.21 [INFO] [stderr] Compiling facet-serialize v0.24.16 [INFO] [stderr] Compiling facet-json v0.24.16 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/skip_serializing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/skip_serializing.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/smartptr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/smartptr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/vec.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/vec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/ulid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet` [INFO] [stdout] --> tests/ulid.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(facet::Facet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/camino.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/camino.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/set.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet` [INFO] [stdout] --> tests/ulid.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(facet::Facet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/bool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/rename.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/rename.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/bool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/eof_and_nulls.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/eof_and_nulls.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/chrono.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/hashmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/err.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/chrono.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/err.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/simple_array.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/ordered-float.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/ordered-float.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/enums.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use facet::Facet; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet`, use `cargo add facet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use facet_testhelpers::test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `facet_testhelpers`, use `cargo add facet_testhelpers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet` [INFO] [stdout] --> tests/enums.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | #[derive(facet::Facet)] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `facet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/ordered-float.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[facet(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/ordered-float.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[facet(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/enums.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | #[facet(rename_all = "snake_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/err.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | #[facet(deny_unknown_fields)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/err.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | #[facet(rename = "new_name")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/skip_serializing.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | #[facet(skip_serializing_if = Option::is_some)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:459:11 [INFO] [stdout] | [INFO] [stdout] 459 | #[facet(rename = "")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/smartptr.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | #[facet(deny_unknown_fields)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/skip_serializing.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | #[facet(skip_serializing_if = String::is_empty)] String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "set") due to 1 previous error [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/smartptr.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[facet(deny_unknown_fields)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/smartptr.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[facet(deny_unknown_fields)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:439:11 [INFO] [stdout] | [INFO] [stdout] 439 | #[facet(rename = "b")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:442:11 [INFO] [stdout] | [INFO] [stdout] 442 | #[facet(rename = "c")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:416:11 [INFO] [stdout] | [INFO] [stdout] 416 | #[facet(rename = "renamedField")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:398:11 [INFO] [stdout] | [INFO] [stdout] 398 | #[facet(rename = "data")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:373:11 [INFO] [stdout] | [INFO] [stdout] 373 | #[facet(rename = "userId")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/skip_serializing.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | #[facet(skip_serializing)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:376:11 [INFO] [stdout] | [INFO] [stdout] 376 | #[facet(rename = "userName")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:325:11 [INFO] [stdout] | [INFO] [stdout] 325 | #[facet(rename = "requiredField")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/skip_serializing.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | struct Salutations(&'static str, #[facet(skip_serializing)] &'static str); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:328:11 [INFO] [stdout] | [INFO] [stdout] 328 | #[facet(rename = "optionalString")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:331:11 [INFO] [stdout] | [INFO] [stdout] 331 | #[facet(rename = "optionalNumber")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | #[facet(rename = "streetName")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:269:11 [INFO] [stdout] | [INFO] [stdout] 269 | #[facet(rename = "zipCode")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/skip_serializing.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | #[facet(skip_serializing)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:275:11 [INFO] [stdout] | [INFO] [stdout] 275 | #[facet(rename = "fullName")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:278:11 [INFO] [stdout] | [INFO] [stdout] 278 | #[facet(rename = "homeAddress")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:281:11 [INFO] [stdout] | [INFO] [stdout] 281 | #[facet(rename = "contactInfo")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:287:11 [INFO] [stdout] | [INFO] [stdout] 287 | #[facet(rename = "type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:290:11 [INFO] [stdout] | [INFO] [stdout] 290 | #[facet(rename = "value")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:211:11 [INFO] [stdout] | [INFO] [stdout] 211 | #[facet(rename = "success")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:213:15 [INFO] [stdout] | [INFO] [stdout] 213 | #[facet(rename = "message")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:216:15 [INFO] [stdout] | [INFO] [stdout] 216 | #[facet(rename = "code")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:220:11 [INFO] [stdout] | [INFO] [stdout] 220 | #[facet(rename = "error")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/camino.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 8 | fn json_read_utf8pathbuf() { [INFO] [stdout] | -------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 8 ~ fn json_read_utf8pathbuf() -> Result<(), Box> { [INFO] [stdout] 9 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 22 | ); [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 6 | fn json_read_unit_enum_variant() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let s_italic: FontStyle = from_str(json_italic)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 6 ~ fn json_read_unit_enum_variant() -> Result<(), Box> { [INFO] [stdout] 7 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 20 | assert_eq!(s_oblique, FontStyle::Oblique); [INFO] [stdout] 21 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/hashmap.rs:8:70 [INFO] [stdout] | [INFO] [stdout] 5 | fn json_read_hashmap() { [INFO] [stdout] | ---------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let m: std::collections::HashMap = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 5 ~ fn json_read_hashmap() -> Result<(), Box> { [INFO] [stdout] 6 | let json = r#"{"key1": "value1", "key2": "value2", "key3": "value3"}"#; [INFO] [stdout] ... [INFO] [stdout] 11| assert_eq!(m.get("key3").unwrap(), "value3"); [INFO] [stdout] 12+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:222:15 [INFO] [stdout] | [INFO] [stdout] 222 | #[facet(rename = "errorMessage")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:22:42 [INFO] [stdout] | [INFO] [stdout] 19 | fn test_deserialize_struct_with_arc_field() { [INFO] [stdout] | ------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 22 | let wrapper: Wrapper = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 19 ~ fn test_deserialize_struct_with_arc_field() -> Result<(), Box> { [INFO] [stdout] 20 | let json = r#"{"inner":{"value":42}}"#; [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(wrapper, expected); [INFO] [stdout] 29 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/bool.rs:15:39 [INFO] [stdout] | [INFO] [stdout] 6 | fn json_read_bool() { [INFO] [stdout] | ------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | let s: BoolStruct = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 6 ~ fn json_read_bool() -> Result<(), Box> { [INFO] [stdout] 7 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 22 | ); [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 225 | #[facet(rename = "errorCode")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/ordered-float.rs:16:93 [INFO] [stdout] | [INFO] [stdout] 11 | fn transparent_ordered_float_1() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let deser: PixelDensity = facet_json::from_str(r#"1.4"#).map_err(|e| eyre::eyre!("{e}"))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 11 ~ fn transparent_ordered_float_1() -> Result<(), Box> { [INFO] [stdout] 12 | #[derive(Facet)] [INFO] [stdout] ... [INFO] [stdout] 17 | assert_eq!(deser.0, 1.4); [INFO] [stdout] 18 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:182:11 [INFO] [stdout] | [INFO] [stdout] 182 | #[facet(rename = "lime")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | #[facet(rename = "cyan")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 7 | fn read_chrono_datetime_utc() { [INFO] [stdout] | ----------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 7 ~ fn read_chrono_datetime_utc() -> Result<(), Box> { [INFO] [stdout] 8 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 21 | ); [INFO] [stdout] 22 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/ulid.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn ulid_read() { [INFO] [stdout] | -------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | let s: FooBar = facet_json::from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn ulid_read() -> Result<(), Box> { [INFO] [stdout] 5 | #[derive(facet::Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 18 | ); [INFO] [stdout] 19 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | #[facet(rename = "123")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_datetime_utc::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_datetime_utc::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:142:11 [INFO] [stdout] | [INFO] [stdout] 142 | #[facet(rename = "€℮↑→↓↔↕")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foo: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foo` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `transparent_ordered_float_1::PixelDensity: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/ordered-float.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let deser: PixelDensity = facet_json::from_str(r#"1.4"#).map_err(|e| eyre::eyre!("{e}"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `transparent_ordered_float_1::PixelDensity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_unit_enum_variant::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let s_italic: FontStyle = from_str(json_italic)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_unit_enum_variant::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_two_empty_vecs::RevisionConfig: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | let config: RevisionConfig = from_str(markup).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_two_empty_vecs::RevisionConfig` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:116:11 [INFO] [stdout] | [INFO] [stdout] 116 | #[facet(rename = "type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Wrapper: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/smartptr.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let wrapper: Wrapper = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Wrapper` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn read_chrono_datetime_fixed_offset() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 33 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 25 ~ fn read_chrono_datetime_fixed_offset() -> Result<(), Box> { [INFO] [stdout] 26 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 42 | ); [INFO] [stdout] 43 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_skip_serializing::Greetings: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/skip_serializing.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | let json = to_string(&test_struct1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_skip_serializing::Greetings` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SimpleObject: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/eof_and_nulls.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | let result = from_str::("{"); [INFO] [stdout] | ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SimpleObject` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:119:11 [INFO] [stdout] | [INFO] [stdout] 119 | #[facet(rename = "match")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:95:11 [INFO] [stdout] | [INFO] [stdout] 95 | #[facet(rename = "🏀")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_datetime_fixed_offset::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_datetime_fixed_offset::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_skip_serializing::Salutations: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/skip_serializing.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | let json = to_string(&test_struct2); [INFO] [stdout] | --------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_skip_serializing::Salutations` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | #[facet(rename = "@#$%^&")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 32 | fn test_roundtrip_arc_foobar() { [INFO] [stdout] | ------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 42 | let arc_foobar: Arc = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 32 ~ fn test_roundtrip_arc_foobar() -> Result<(), Box> { [INFO] [stdout] 33 | #[derive(Debug, PartialEq, Facet)] [INFO] [stdout] ... [INFO] [stdout] 53 | assert_eq!(serialized, json); [INFO] [stdout] 54 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | #[facet(rename = "kebab-case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/ordered-float.rs:24:93 [INFO] [stdout] | [INFO] [stdout] 21 | fn transparent_ordered_float_2() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 24 | let deser: PixelDensity = facet_json::from_str(r#"1.4"#).map_err(|e| eyre::eyre!("{e}"))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 21 ~ fn transparent_ordered_float_2() -> Result<(), Box> { [INFO] [stdout] 22 | type PixelDensity = OrderedFloat; [INFO] [stdout] ... [INFO] [stdout] 25 | assert_eq!(deser.0, 1.4); [INFO] [stdout] 26 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SimpleArray: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/simple_array.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SimpleArray` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_utf8pathbuf::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/camino.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_utf8pathbuf::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BoolStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/bool.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | let s: BoolStruct = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `BoolStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/ordered-float.rs:34:93 [INFO] [stdout] | [INFO] [stdout] 29 | fn transparent_ordered_float_3() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 34 | let deser: PixelDensity = facet_json::from_str(r#"1.4"#).map_err(|e| eyre::eyre!("{e}"))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 29 ~ fn transparent_ordered_float_3() -> Result<(), Box> { [INFO] [stdout] 30 | #[derive(Facet)] [INFO] [stdout] ... [INFO] [stdout] 35 | assert_eq!(deser.0, OrderedFloat(1.4)); [INFO] [stdout] 36 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Gruesse: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/skip_serializing.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let json = to_string(&test_struct3); [INFO] [stdout] | --------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Gruesse` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foobar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/smartptr.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | let arc_foobar: Arc = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foobar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] = note: required for `Arc` to implement `facet_core::Facet<'_>` [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ulid_read::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/ulid.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let s: FooBar = facet_json::from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `ulid_read::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_skip_serializing_if::Greetings: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/skip_serializing.rs:55:26 [INFO] [stdout] | [INFO] [stdout] 55 | let json = to_string(&test_struct1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_skip_serializing_if::Greetings` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `transparent_ordered_float_3::PixelDensity: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/ordered-float.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | let deser: PixelDensity = facet_json::from_str(r#"1.4"#).map_err(|e| eyre::eyre!("{e}"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `transparent_ordered_float_3::PixelDensity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:55:11 [INFO] [stdout] | [INFO] [stdout] 55 | #[facet(rename = "snake_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | #[facet(rename = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 6 | fn json_read_unit_enum_variant() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 19 | let s_oblique: FontStyle = from_str(json_oblique)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 6 ~ fn json_read_unit_enum_variant() -> Result<(), Box> { [INFO] [stdout] 7 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 20 | assert_eq!(s_oblique, FontStyle::Oblique); [INFO] [stdout] 21 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[facet(rename = "bonjour")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_one_empty_one_nonempty_vec::RevisionConfig: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let config: RevisionConfig = from_str(markup).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_one_empty_one_nonempty_vec::RevisionConfig` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_skip_serializing_if::Salutations: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/skip_serializing.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | let json = to_string(&test_struct2); [INFO] [stdout] | --------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_skip_serializing_if::Salutations` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foobar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/smartptr.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | let serialized = to_string(&arc_foobar); [INFO] [stdout] | --------- ^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foobar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] = note: required for `Arc` to implement `facet_core::Facet<'_>` [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | #[facet(rename = "bonjour")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 57 | fn test_roundtrip_arc_str() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 60 | let arc_str: Arc = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 57 ~ fn test_roundtrip_arc_str() -> Result<(), Box> { [INFO] [stdout] 58 | let json = r#""hello world""#; [INFO] [stdout] ... [INFO] [stdout] 68 | assert_eq!(serialized, json); [INFO] [stdout] 69 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SimpleObject: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/eof_and_nulls.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let result = from_str::("{\"key\""); [INFO] [stdout] | ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SimpleObject` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 46 | fn read_chrono_naive_datetime() { [INFO] [stdout] | ------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 54 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 46 ~ fn read_chrono_naive_datetime() -> Result<(), Box> { [INFO] [stdout] 47 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 63 | ); [INFO] [stdout] 64 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SimpleObject: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/eof_and_nulls.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | let result = from_str::("{\"key\":"); [INFO] [stdout] | ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SimpleObject` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "hashmap") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/rename.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | #[facet(rename = "au_revoir")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OptionalStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/eof_and_nulls.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | let ok = from_str::(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `OptionalStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_naive_datetime::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_naive_datetime::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_write_utf8pathbuf_1::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/camino.rs:36:39 [INFO] [stdout] | [INFO] [stdout] 36 | let _json = facet_json::to_string(&original); [INFO] [stdout] | --------------------- ^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_write_utf8pathbuf_1::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/eof_and_nulls.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 73 | fn test_null_handling() { [INFO] [stdout] | ----------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 89 | let ok = from_str::(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 73 ~ fn test_null_handling() -> Result<(), Box> { [INFO] [stdout] 74 | // Test with invalid null value [INFO] [stdout] ... [INFO] [stdout] 90 | assert_eq!(ok.val, None); [INFO] [stdout] 91 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 72 | fn test_roundtrip_rc_str() { [INFO] [stdout] | -------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 76 | let rc_str: Rc = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 72 ~ fn test_roundtrip_rc_str() -> Result<(), Box> { [INFO] [stdout] 73 | use std::rc::Rc; [INFO] [stdout] ... [INFO] [stdout] 84 | assert_eq!(serialized, json); [INFO] [stdout] 85 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_one_nonempty_one_empty_vec::RevisionConfig: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | let config: RevisionConfig = from_str(markup).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_one_nonempty_one_empty_vec::RevisionConfig` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:75:35 [INFO] [stdout] | [INFO] [stdout] 67 | fn read_chrono_naive_date() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 75 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 67 ~ fn read_chrono_naive_date() -> Result<(), Box> { [INFO] [stdout] 68 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 81 | ); [INFO] [stdout] 82 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 88 | fn test_roundtrip_box_str() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 91 | let box_str: Box = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 88 ~ fn test_roundtrip_box_str() -> Result<(), Box> { [INFO] [stdout] 89 | let json = r#""hello world""#; [INFO] [stdout] ... [INFO] [stdout] 99 | assert_eq!(serialized, json); [INFO] [stdout] 100+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_naive_date::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_naive_date::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NestedArrays: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:98:32 [INFO] [stdout] | [INFO] [stdout] 98 | let nested: NestedArrays = from_str(markup).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `NestedArrays` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_chrono_naive_time() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 93 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 85 ~ fn read_chrono_naive_time() -> Result<(), Box> { [INFO] [stdout] 86 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 99 | ); [INFO] [stdout] 100+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "skip_serializing") due to 12 previous errors [INFO] [stdout] error[E0277]: the trait bound `SimpleArray: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/simple_array.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SimpleArray` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 103 | fn test_roundtrip_arc_slice() { [INFO] [stdout] | ----------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 106 | let arc_slice: Arc<[i32]> = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 103 ~ fn test_roundtrip_arc_slice() -> Result<(), Box> { [INFO] [stdout] 104 | let json = r#"[1,2,3,4]"#; [INFO] [stdout] ... [INFO] [stdout] 114 | assert_eq!(serialized, json); [INFO] [stdout] 115 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ulid_write::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/ulid.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | let json = facet_json::to_string(&value); [INFO] [stdout] | --------------------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `ulid_write::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_unit_enum_variant::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | let s_oblique: FontStyle = from_str(json_oblique)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_unit_enum_variant::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_naive_time::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_naive_time::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 118 | fn test_deserialize_arc_slice_only() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 122 | let arc_slice: Arc<[i32]> = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 118 ~ fn test_deserialize_arc_slice_only() -> Result<(), Box> { [INFO] [stdout] 119 | // Test only deserialization of Arc<[i32]> (not serialization) [INFO] [stdout] ... [INFO] [stdout] 135 | assert_eq!(empty_arc.len(), 0); [INFO] [stdout] 136 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foo: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foo` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 24 | fn json_read_unit_enum_variant_lowercase() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 35 | let s_italic: FontStyle = from_str(json_italic)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 24 ~ fn json_read_unit_enum_variant_lowercase() -> Result<(), Box> { [INFO] [stdout] 25 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(s_oblique, FontStyle::Oblique); [INFO] [stdout] 40 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/vec.rs:131:46 [INFO] [stdout] | [INFO] [stdout] 113 | fn test_vec_of_structs_fine() { [INFO] [stdout] | ----------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 131 | let foos: Vec = from_str(payload)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 113 ~ fn test_vec_of_structs_fine() -> Result<(), Box> { [INFO] [stdout] 114 | #[derive(Facet)] [INFO] [stdout] ... [INFO] [stdout] 136 | assert_eq!(foos[1].bar, "world"); [INFO] [stdout] 137 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `write_chrono_datetime_utc::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `write_chrono_datetime_utc::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "ordered-float") due to 9 previous errors [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/smartptr.rs:134:53 [INFO] [stdout] | [INFO] [stdout] 118 | fn test_deserialize_arc_slice_only() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 134 | let empty_arc: Arc<[i32]> = from_str(empty_json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 118 ~ fn test_deserialize_arc_slice_only() -> Result<(), Box> { [INFO] [stdout] 119 | // Test only deserialization of Arc<[i32]> (not serialization) [INFO] [stdout] ... [INFO] [stdout] 135 | assert_eq!(empty_arc.len(), 0); [INFO] [stdout] 136 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "bool") due to 4 previous errors [INFO] [stdout] error[E0277]: the trait bound `json_write_utf8pathbuf_2::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/camino.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_write_utf8pathbuf_2::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `write_chrono_datetime_fixed_offset::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `write_chrono_datetime_fixed_offset::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_unit_enum_variant_lowercase::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | let s_italic: FontStyle = from_str(json_italic)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_unit_enum_variant_lowercase::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "eof_and_nulls") due to 7 previous errors [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `write_chrono_naive_datetime::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `write_chrono_naive_datetime::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 24 | fn json_read_unit_enum_variant_lowercase() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 38 | let s_oblique: FontStyle = from_str(json_oblique)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 24 ~ fn json_read_unit_enum_variant_lowercase() -> Result<(), Box> { [INFO] [stdout] 25 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(s_oblique, FontStyle::Oblique); [INFO] [stdout] 40 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_vec_of_structs_fine::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | let foos: Vec = from_str(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_vec_of_structs_fine::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] = note: required for `Vec` to implement `facet_core::Facet<'_>` [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_unit_enum_variant_lowercase::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | let s_oblique: FontStyle = from_str(json_oblique)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_unit_enum_variant_lowercase::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "camino") due to 6 previous errors [INFO] [stderr] error: could not compile `facet-json` (test "smartptr") due to 16 previous errors [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 43 | fn json_read_tuple_variant() { [INFO] [stdout] | ---------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 54 | let p_x: Point = from_str(json_x)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 43 ~ fn json_read_tuple_variant() -> Result<(), Box> { [INFO] [stdout] 44 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 58 | assert_eq!(p_y, Point::Y("hello".to_string(), true)); [INFO] [stdout] 59 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NestedArraySimple: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/simple_array.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `NestedArraySimple` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foo: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foo` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_tuple_variant::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | let p_x: Point = from_str(json_x)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_tuple_variant::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "ulid") due to 6 previous errors [INFO] [stdout] error[E0277]: the trait bound `write_chrono_naive_date::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:162:26 [INFO] [stdout] | [INFO] [stdout] 162 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `write_chrono_naive_date::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:57:38 [INFO] [stdout] | [INFO] [stdout] 43 | fn json_read_tuple_variant() { [INFO] [stdout] | ---------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 57 | let p_y: Point = from_str(json_y)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 43 ~ fn json_read_tuple_variant() -> Result<(), Box> { [INFO] [stdout] 44 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 58 | assert_eq!(p_y, Point::Y("hello".to_string(), true)); [INFO] [stdout] 59 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_vec_of_structs_missing_field::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/vec.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | let result = from_str::>(payload); [INFO] [stdout] | ^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_vec_of_structs_missing_field::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] = note: required for `Vec` to implement `facet_core::Facet<'_>` [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_tuple_variant::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let p_y: Point = from_str(json_y)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_tuple_variant::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foo: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foo` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `write_chrono_naive_time::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:177:26 [INFO] [stdout] | [INFO] [stdout] 177 | let json = to_string(&value); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `write_chrono_naive_time::FooBar` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 62 | fn json_read_struct_variant() { [INFO] [stdout] | ----------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 74 | let point1: Point = from_str(json1)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 62 ~ fn json_read_struct_variant() -> Result<(), Box> { [INFO] [stdout] 63 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 82 | ); [INFO] [stdout] 83 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:191:35 [INFO] [stdout] | [INFO] [stdout] 182 | fn read_chrono_optional_datetime() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 191 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 182 ~ fn read_chrono_optional_datetime() -> Result<(), Box> { [INFO] [stdout] 183 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 198 | ); [INFO] [stdout] 199 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Foo: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:60:26 [INFO] [stdout] | [INFO] [stdout] 60 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^ the trait `facet_core::Facet<'_>` is not implemented for `Foo` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `json_read_struct_variant::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | let point1: Point = from_str(json1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `json_read_struct_variant::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `read_chrono_optional_datetime::FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | let s: FooBar = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `read_chrono_optional_datetime::FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "simple_array") due to 4 previous errors [INFO] [stdout] error[E0277]: the trait bound `FooBar: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `FooBar` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | facet_json::to_string(&good_point), [INFO] [stdout] | --------------------- ^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/chrono.rs:210:40 [INFO] [stdout] | [INFO] [stdout] 202 | fn chrono_in_vec() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 210 | let events: Events = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 202 ~ fn chrono_in_vec() -> Result<(), Box> { [INFO] [stdout] 203 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 222 | assert_eq!(serialized, json); [INFO] [stdout] 223 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | assert_eq!(facet_json::to_string(&bad_point), r#"{"Variant2":"aaa"}"#); [INFO] [stdout] | --------------------- ^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `RenamedFields: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/err.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | let err = from_str::(json).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `RenamedFields` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Events: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:210:26 [INFO] [stdout] | [INFO] [stdout] 210 | let events: Events = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Events` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "vec") due to 9 previous errors [INFO] [stdout] error[E0277]: the trait bound `enum_::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:150:31 [INFO] [stdout] | [INFO] [stdout] 150 | facet_json::to_string(&medium_point), [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/rename.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 9 | fn test_field_rename_deserialization() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 21 | let result: Greetings = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 9 ~ fn test_field_rename_deserialization() -> Result<(), Box> { [INFO] [stdout] 10 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 24 | assert_eq!(result.goodbye, "world"); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_deserialization::Greetings: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | let result: Greetings = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_deserialization::Greetings` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:168:45 [INFO] [stdout] | [INFO] [stdout] 168 | let json_italic = facet_json::to_string(&italic); [INFO] [stdout] | --------------------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::FontStyle` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Events: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/chrono.rs:221:32 [INFO] [stdout] | [INFO] [stdout] 221 | let serialized = to_string(&events); [INFO] [stdout] | --------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Events` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:172:77 [INFO] [stdout] | [INFO] [stdout] 156 | fn enum_variants() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 172 | facet_json::from_str(&json_italic).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 156 ~ fn enum_variants() -> Result<(), Box> { [INFO] [stdout] 157 | // Unit variants [INFO] [stdout] ... [INFO] [stdout] 223 | assert_eq!(deserialized_y, y); [INFO] [stdout] 224 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_roundtrip::Greetings: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | let json = to_string(&original); [INFO] [stdout] | --------- ^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_roundtrip::Greetings` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | facet_json::from_str(&json_italic).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:190:43 [INFO] [stdout] | [INFO] [stdout] 190 | let json_good = facet_json::to_string(&good); [INFO] [stdout] | --------------------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_roundtrip::Greetings: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:43:32 [INFO] [stdout] | [INFO] [stdout] 43 | let roundtrip: Greetings = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_roundtrip::Greetings` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "chrono") due to 22 previous errors [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:198:75 [INFO] [stdout] | [INFO] [stdout] 156 | fn enum_variants() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 198 | facet_json::from_str(&json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 156 ~ fn enum_variants() -> Result<(), Box> { [INFO] [stdout] 157 | // Unit variants [INFO] [stdout] ... [INFO] [stdout] 223 | assert_eq!(deserialized_y, y); [INFO] [stdout] 224 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/rename.rs:64:46 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_field_rename_common_case_styles() { [INFO] [stdout] | ----------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 64 | let result: SpecialNames = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 49 ~ fn test_field_rename_common_case_styles() -> Result<(), Box> { [INFO] [stdout] 50 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 67 | assert_eq!(result.camel_case, "hump"); [INFO] [stdout] 68 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | facet_json::from_str(&json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | let json_x = facet_json::to_string(&x); [INFO] [stdout] | --------------------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SpecialNames: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 64 | let result: SpecialNames = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SpecialNames` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:215:40 [INFO] [stdout] | [INFO] [stdout] 215 | let json_y = facet_json::to_string(&y); [INFO] [stdout] | --------------------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SpecialCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | let json = to_string(&test_struct); [INFO] [stdout] | --------- ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SpecialCharsName` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:219:96 [INFO] [stdout] | [INFO] [stdout] 156 | fn enum_variants() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 219 | let deserialized_x: Point = facet_json::from_str(&json_x).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 156 ~ fn enum_variants() -> Result<(), Box> { [INFO] [stdout] 157 | // Unit variants [INFO] [stdout] ... [INFO] [stdout] 223 | assert_eq!(deserialized_y, y); [INFO] [stdout] 224 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "err") due to 11 previous errors [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:219:33 [INFO] [stdout] | [INFO] [stdout] 219 | let deserialized_x: Point = facet_json::from_str(&json_x).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:222:96 [INFO] [stdout] | [INFO] [stdout] 156 | fn enum_variants() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 222 | let deserialized_y: Point = facet_json::from_str(&json_y).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 156 ~ fn enum_variants() -> Result<(), Box> { [INFO] [stdout] 157 | // Unit variants [INFO] [stdout] ... [INFO] [stdout] 223 | assert_eq!(deserialized_y, y); [INFO] [stdout] 224 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SpecialCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | let roundtrip: SpecialCharsName = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `SpecialCharsName` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_with_unicode_name_emoji::EmojiCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 103 | let json = to_string(&test_struct); [INFO] [stdout] | --------- ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_with_unicode_name_emoji::EmojiCharsName` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:222:33 [INFO] [stdout] | [INFO] [stdout] 222 | let deserialized_y: Point = facet_json::from_str(&json_y).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_variants::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_with_unicode_name_emoji::EmojiCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:106:37 [INFO] [stdout] | [INFO] [stdout] 106 | let roundtrip: EmojiCharsName = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_with_unicode_name_emoji::EmojiCharsName` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_unit_variants::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | let json_italic = facet_json::to_string(&italic); [INFO] [stdout] | --------------------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_unit_variants::FontStyle` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `RawIdentifiers: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let json = to_string(&original); [INFO] [stdout] | --------- ^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `RawIdentifiers` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:243:77 [INFO] [stdout] | [INFO] [stdout] 227 | fn enum_unit_variants() { [INFO] [stdout] | ----------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 243 | facet_json::from_str(&json_italic).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 227 ~ fn enum_unit_variants() -> Result<(), Box> { [INFO] [stdout] 228 | // Unit variants [INFO] [stdout] ... [INFO] [stdout] 244 | assert_eq!(deserialized_italic, italic); [INFO] [stdout] 245 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `RawIdentifiers: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | let roundtrip: RawIdentifiers = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `RawIdentifiers` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_unit_variants::FontStyle: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | facet_json::from_str(&json_italic).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_unit_variants::FontStyle` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_with_unicode_name_special_signs::EmojiCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:150:26 [INFO] [stdout] | [INFO] [stdout] 150 | let json = to_string(&test_struct); [INFO] [stdout] | --------- ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_with_unicode_name_special_signs::EmojiCharsName` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_tuple_primitive_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | let json_x = facet_json::to_string(&x); [INFO] [stdout] | --------------------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_tuple_primitive_variants::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:262:96 [INFO] [stdout] | [INFO] [stdout] 248 | fn enum_tuple_primitive_variants() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 262 | let deserialized_x: Point = facet_json::from_str(&json_x).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 248 ~ fn enum_tuple_primitive_variants() -> Result<(), Box> { [INFO] [stdout] 249 | // Tuple variants with primitive types [INFO] [stdout] ... [INFO] [stdout] 271 | assert_eq!(deserialized_y, y); [INFO] [stdout] 272 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_field_rename_with_unicode_name_special_signs::EmojiCharsName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | let roundtrip: EmojiCharsName = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_field_rename_with_unicode_name_special_signs::EmojiCharsName` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_tuple_primitive_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:262:33 [INFO] [stdout] | [INFO] [stdout] 262 | let deserialized_x: Point = facet_json::from_str(&json_x).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_tuple_primitive_variants::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_tuple_primitive_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:267:40 [INFO] [stdout] | [INFO] [stdout] 267 | let json_y = facet_json::to_string(&y); [INFO] [stdout] | --------------------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_tuple_primitive_variants::Point` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NumericName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let json = to_string(&test_struct); [INFO] [stdout] | --------- ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `NumericName` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:270:96 [INFO] [stdout] | [INFO] [stdout] 248 | fn enum_tuple_primitive_variants() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 270 | let deserialized_y: Point = facet_json::from_str(&json_y).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 248 ~ fn enum_tuple_primitive_variants() -> Result<(), Box> { [INFO] [stdout] 249 | // Tuple variants with primitive types [INFO] [stdout] ... [INFO] [stdout] 271 | assert_eq!(deserialized_y, y); [INFO] [stdout] 272 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NumericName: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:171:34 [INFO] [stdout] | [INFO] [stdout] 171 | let roundtrip: NumericName = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `NumericName` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_tuple_primitive_variants::Point: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:270:33 [INFO] [stdout] | [INFO] [stdout] 270 | let deserialized_y: Point = facet_json::from_str(&json_y).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_tuple_primitive_variants::Point` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:191:26 [INFO] [stdout] | [INFO] [stdout] 191 | let json = to_string(&green); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Color` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:290:31 [INFO] [stdout] | [INFO] [stdout] 290 | facet_json::to_string(&good), [INFO] [stdout] | --------------------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:300:31 [INFO] [stdout] | [INFO] [stdout] 300 | facet_json::to_string(&tenant), [INFO] [stdout] | --------------------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:193:28 [INFO] [stdout] | [INFO] [stdout] 193 | let roundtrip: Color = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Color` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:307:74 [INFO] [stdout] | [INFO] [stdout] 275 | fn enum_struct_variants_1() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 307 | facet_json::from_str(json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 275 ~ fn enum_struct_variants_1() -> Result<(), Box> { [INFO] [stdout] 276 | #[derive(Debug, Facet, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 318 | assert_eq!(roundtrip, good); [INFO] [stdout] 319 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | let json = to_string(&blue); [INFO] [stdout] | --------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Color` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | facet_json::from_str(json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:312:76 [INFO] [stdout] | [INFO] [stdout] 275 | fn enum_struct_variants_1() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 312 | facet_json::from_str(json_tenant).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 275 ~ fn enum_struct_variants_1() -> Result<(), Box> { [INFO] [stdout] 276 | #[derive(Debug, Facet, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 318 | assert_eq!(roundtrip, good); [INFO] [stdout] 319 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | let roundtrip: Color = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Color` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | facet_json::from_str(json_tenant).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | let json = facet_json::to_string(&good); [INFO] [stdout] | --------------------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:236:26 [INFO] [stdout] | [INFO] [stdout] 236 | let json = to_string(&success); [INFO] [stdout] | --------- ^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:317:91 [INFO] [stdout] | [INFO] [stdout] 275 | fn enum_struct_variants_1() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 317 | let roundtrip: Message = facet_json::from_str(&json).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 275 ~ fn enum_struct_variants_1() -> Result<(), Box> { [INFO] [stdout] 276 | #[derive(Debug, Facet, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 318 | assert_eq!(roundtrip, good); [INFO] [stdout] 319 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | let roundtrip: Message = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_1::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:317:30 [INFO] [stdout] | [INFO] [stdout] 317 | let roundtrip: Message = facet_json::from_str(&json).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_1::Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:251:26 [INFO] [stdout] | [INFO] [stdout] 251 | let json = to_string(&error); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MomEvent: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:350:38 [INFO] [stdout] | [INFO] [stdout] 350 | assert_eq!(facet_json::to_string(&good), expected_good); [INFO] [stdout] | --------------------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `MomEvent` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MomEvent: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:358:38 [INFO] [stdout] | [INFO] [stdout] 358 | assert_eq!(facet_json::to_string(&tenant), expected_tenant); [INFO] [stdout] | --------------------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `MomEvent` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:363:74 [INFO] [stdout] | [INFO] [stdout] 322 | fn tuple_struct_variants() { [INFO] [stdout] | -------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 363 | facet_json::from_str(json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 322 | fn tuple_struct_variants() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MomEvent: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | facet_json::from_str(json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `MomEvent` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:257:30 [INFO] [stdout] | [INFO] [stdout] 257 | let roundtrip: Message = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Person: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let json = to_string(&person); [INFO] [stdout] | --------- ^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Person` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:375:76 [INFO] [stdout] | [INFO] [stdout] 322 | fn tuple_struct_variants() { [INFO] [stdout] | -------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 375 | facet_json::from_str(json_tenant).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 322 | fn tuple_struct_variants() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MomEvent: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | facet_json::from_str(json_tenant).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `MomEvent` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Person: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:316:29 [INFO] [stdout] | [INFO] [stdout] 316 | let roundtrip: Person = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Person` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_2::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:400:43 [INFO] [stdout] | [INFO] [stdout] 400 | let json_good = facet_json::to_string(&good); [INFO] [stdout] | --------------------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_2::Message` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/enums.rs:405:75 [INFO] [stdout] | [INFO] [stdout] 387 | fn enum_struct_variants_2() { [INFO] [stdout] | --------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 405 | facet_json::from_str(&json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 387 ~ fn enum_struct_variants_2() -> Result<(), Box> { [INFO] [stdout] 388 | // Struct variants [INFO] [stdout] ... [INFO] [stdout] 406 | assert_eq!(deserialized_good, good); [INFO] [stdout] 407 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OptionalFields: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:342:26 [INFO] [stdout] | [INFO] [stdout] 342 | let json = to_string(&full); [INFO] [stdout] | --------- ^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `OptionalFields` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `enum_struct_variants_2::Message: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/enums.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | facet_json::from_str(&json_good).map_err(|e| eyre::eyre!("{}", e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `enum_struct_variants_2::Message` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OptionalFields: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:348:37 [INFO] [stdout] | [INFO] [stdout] 348 | let roundtrip: OptionalFields = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `OptionalFields` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OptionalFields: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:358:26 [INFO] [stdout] | [INFO] [stdout] 358 | let json = to_string(&partial); [INFO] [stdout] | --------- ^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `OptionalFields` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OptionalFields: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:364:37 [INFO] [stdout] | [INFO] [stdout] 364 | let roundtrip: OptionalFields = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `OptionalFields` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "enums") due to 60 previous errors [INFO] [stdout] error[E0277]: the trait bound `User: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:384:22 [INFO] [stdout] | [INFO] [stdout] 384 | let user: User = facet_json::from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `User` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DataModel: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:406:26 [INFO] [stdout] | [INFO] [stdout] 406 | let json = to_string(&model); [INFO] [stdout] | --------- ^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `DataModel` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Required: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:424:41 [INFO] [stdout] | [INFO] [stdout] 424 | let result = facet_json::from_str::(json); [INFO] [stdout] | ^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `Required` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> tests/rename.rs:448:43 [INFO] [stdout] | [INFO] [stdout] 436 | fn test_field_rename_not_alias() { [INFO] [stdout] | -------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 448 | let result: ABTesting = from_str(json)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 436 ~ fn test_field_rename_not_alias() -> Result<(), Box> { [INFO] [stdout] 437 | #[derive(Facet, Debug, PartialEq)] [INFO] [stdout] ... [INFO] [stdout] 451 | assert_eq!(result.b, "focus group 2"); [INFO] [stdout] 452 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ABTesting: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:448:29 [INFO] [stdout] | [INFO] [stdout] 448 | let result: ABTesting = from_str(json)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `ABTesting` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `EmptyStringField: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:471:26 [INFO] [stdout] | [INFO] [stdout] 471 | let json = to_string(&test_struct); [INFO] [stdout] | --------- ^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `EmptyStringField` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::to_string` [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn to_string<'facet, T: Facet<'facet>>(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `EmptyStringField: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/rename.rs:474:39 [INFO] [stdout] | [INFO] [stdout] 474 | let roundtrip: EmptyStringField = from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `EmptyStringField` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `facet_core::Facet<'a>`: [INFO] [stdout] `&'a T` implements `facet_core::Facet<'a>` [INFO] [stdout] `&'a mut T` implements `facet_core::Facet<'a>` [INFO] [stdout] `()` implements `facet_core::Facet<'_>` [INFO] [stdout] `(T0, T1)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `facet_core::Facet<'a>` [INFO] [stdout] `(T0,)` implements `facet_core::Facet<'a>` [INFO] [stdout] `*const T` implements `facet_core::Facet<'a>` [INFO] [stdout] and 86 others [INFO] [stdout] note: required by a bound in `facet_json::from_str` [INFO] [stdout] --> /opt/rustwide/workdir/src/deserialize.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_str<'input, 'facet, 'shape, T: Facet<'facet>>( [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "rename") due to 76 previous errors [INFO] running `Command { std: "docker" "inspect" "7e81e2baa13eb0ea34ebec401094e85fecedd60c4d8c7abbc3dbaf19f0c5480e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e81e2baa13eb0ea34ebec401094e85fecedd60c4d8c7abbc3dbaf19f0c5480e", kill_on_drop: false }` [INFO] [stdout] 7e81e2baa13eb0ea34ebec401094e85fecedd60c4d8c7abbc3dbaf19f0c5480e