[INFO] fetching crate facet-json 0.24.16... [INFO] checking facet-json-0.24.16 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate facet-json 0.24.16 into /workspace/builds/worker-0-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate facet-json 0.24.16 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2bad623c023742ae17b859f48b7bb1d54ffa64f1e302fd38139b19a6be03c083 [INFO] running `Command { std: "docker" "start" "-a" "2bad623c023742ae17b859f48b7bb1d54ffa64f1e302fd38139b19a6be03c083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2bad623c023742ae17b859f48b7bb1d54ffa64f1e302fd38139b19a6be03c083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bad623c023742ae17b859f48b7bb1d54ffa64f1e302fd38139b19a6be03c083", kill_on_drop: false }` [INFO] [stdout] 2bad623c023742ae17b859f48b7bb1d54ffa64f1e302fd38139b19a6be03c083 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7df55be5f35c6a555959b01c6f76637ab6ba344899b9c1f84e9611b17168485 [INFO] running `Command { std: "docker" "start" "-a" "c7df55be5f35c6a555959b01c6f76637ab6ba344899b9c1f84e9611b17168485", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling camino v1.1.10 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling owo-colors v4.2.2 [INFO] [stderr] Checking ordered-float v5.0.0 [INFO] [stderr] Checking impls v1.0.3 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking ariadne v0.5.1 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking ulid v1.2.1 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking insta v1.43.1 [INFO] [stderr] Checking facet-core v0.27.15 [INFO] [stderr] Checking facet-reflect v0.27.15 [INFO] [stderr] Checking facet-deserialize v0.24.21 [INFO] [stderr] Checking facet-serialize v0.24.16 [INFO] [stderr] Checking facet-json v0.24.16 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `facet_testhelpers` [INFO] [stdout] --> tests/diagnostics.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/array_u64.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/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[E0432]: unresolved import `facet` [INFO] [stdout] --> tests/arrays.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/arrays.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/tenant-config.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/tenant-config.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/deny_unknown_and_default.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` [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_testhelpers` [INFO] [stdout] --> tests/deny_unknown_and_default.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] 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/enums.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | #[facet(rename_all = "snake_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `facet-json` (test "diagnostics") due to 1 previous error [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: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/tenant-config.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | #[facet(optional)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [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] [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/deny_unknown_and_default.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | #[facet(default = default_number())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ElectricityData: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/arrays.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `ElectricityData` [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/deny_unknown_and_default.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | #[facet(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NestedArrays: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/arrays.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | let result = from_str::(json); [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: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/deny_unknown_and_default.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | #[facet(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `facet` in this scope [INFO] [stdout] --> tests/deny_unknown_and_default.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | #[facet(deny_unknown_fields)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MixedArrayTypes: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/arrays.rs:97:29 [INFO] [stdout] | [INFO] [stdout] 97 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `MixedArrayTypes` [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[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[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 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] 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/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[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 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 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] [stderr] error: could not compile `facet-json` (test "arrays") due to 5 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: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[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[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] --> tests/array_u64.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | facet_testhelpers::setup(); [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[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] [stdout] error[E0277]: the trait bound `TenantConfig: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/tenant-config.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | let result = from_str::>(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `TenantConfig` [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 `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 `ThreeField: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | let result: Result = from_str(json_data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `ThreeField` [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 `StrictStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | let _strict: StrictStruct = from_str(json_ok).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `StrictStruct` [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: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 `StrictStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | let result_extra: Result = from_str(json_extra); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `StrictStruct` [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 `DefaultStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:56:28 [INFO] [stdout] | [INFO] [stdout] 56 | let s: DefaultStruct = from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `DefaultStruct` [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 `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[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[E0277]: the trait bound `FieldDefault: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | let s: FieldDefault = from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `FieldDefault` [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 `FieldDefaultFn: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | let s: FieldDefaultFn = from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `FieldDefaultFn` [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_allow_unknown_fields_1::PermissiveStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | let _ = from_str::(json_ok).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_allow_unknown_fields_1::PermissiveStruct` [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 `U64Array: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/array_u64.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `U64Array` [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_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] [stdout] error[E0277]: the trait bound `test_allow_unknown_fields_1::PermissiveStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | let _ = from_str::(json_extra).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_allow_unknown_fields_1::PermissiveStruct` [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_allow_unknown_fields_complex::PermissiveStruct: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/deny_unknown_and_default.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | let result: PermissiveStruct = from_str(json_complex).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `test_allow_unknown_fields_complex::PermissiveStruct` [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] --> tests/array_u64.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | facet_testhelpers::setup(); [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] 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/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] [stderr] error: could not compile `facet-json` (test "deny_unknown_and_default") due to 15 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] 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 `NestedU64Array: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/array_u64.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `NestedU64Array` [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] --> tests/array_u64.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | facet_testhelpers::setup(); [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[E0277]: the trait bound `U64Array: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/array_u64.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | let result = from_str::(json); [INFO] [stdout] | ^^^^^^^^ the trait `facet_core::Facet<'_>` is not implemented for `U64Array` [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: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[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] --> tests/array_u64.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | facet_testhelpers::setup(); [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[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] [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 "tenant-config") due to 4 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: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 `?` 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 `U64Array: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/array_u64.rs:69:23 [INFO] [stdout] | [INFO] [stdout] 69 | let _ = to_string(&s); [INFO] [stdout] | --------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `U64Array` [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 `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[E0433]: failed to resolve: use of unresolved module or unlinked crate `facet_testhelpers` [INFO] [stdout] --> tests/array_u64.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | facet_testhelpers::setup(); [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[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 trait bound `U8Array: facet_core::Facet<'_>` is not satisfied [INFO] [stdout] --> tests/array_u64.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = to_string(&p); [INFO] [stdout] | --------- ^^ the trait `facet_core::Facet<'_>` is not implemented for `U8Array` [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_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 `?` 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 `?` 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] 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 `?` 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] 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/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] [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] [stderr] error: could not compile `facet-json` (test "array_u64") due to 11 previous errors [INFO] [stderr] error: could not compile `facet-json` (test "eof_and_nulls") due to 7 previous errors [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 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] [stderr] error: could not compile `facet-json` (test "smartptr") due to 16 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 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 `?` 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 `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] 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 `?` 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 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] 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 `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 `?` 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] [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 `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 `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 `?` 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 `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 `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 `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 `?` 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 `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 `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 `?` 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 `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 `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 `?` 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 `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 `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 `?` 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 `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 `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] 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] [stderr] error: could not compile `facet-json` (test "enums") due to 60 previous errors [INFO] running `Command { std: "docker" "inspect" "c7df55be5f35c6a555959b01c6f76637ab6ba344899b9c1f84e9611b17168485", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7df55be5f35c6a555959b01c6f76637ab6ba344899b9c1f84e9611b17168485", kill_on_drop: false }` [INFO] [stdout] c7df55be5f35c6a555959b01c6f76637ab6ba344899b9c1f84e9611b17168485