Debian Codegraph @

debian/rust-vendor/defmt/tests/ui/derive_bound_overflow.stderr

raw
1 error[E0275]: overflow evaluating the requirement `<F as FlavorT>::List<'static, Flavored<F>>: Format`
2 --> tests/ui/derive_bound_overflow.rs:14:9
3 |
4 14 | Str(F::List<'static, Self>),
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 note: required for `Flavored<F>` to implement `Format`
8 --> tests/ui/derive_bound_overflow.rs:11:10
9 |
10 11 | #[derive(defmt::Format)]
11 | ^^^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
12 12 | // #[defmt(bound())] // fixes the compile error
13 13 | enum Flavored<F: FlavorT + 'static> {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 note: required by a bound in `FlavorT::List`
16 --> tests/ui/derive_bound_overflow.rs:4:27
17 |
18 4 | type List<'a, T: 'a + ::defmt::Format>: ::defmt::Format;
19 | ^^^^^^^^^^^^^^^ required by this bound in `FlavorT::List`
20 = note: this error originates in the derive macro `defmt::Format` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22 error[E0275]: overflow evaluating the requirement `Flavored<Flavor>: Format`
23 --> tests/ui/derive_bound_overflow.rs:20:5
24 |
25 20 | implements_format::<Flavored<Flavor>>(); // overflow by the compiler, can only be fixed by removing the bound
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 |
28 note: required by a bound in `implements_format`
29 --> tests/ui/derive_bound_overflow.rs:18:35
30 |
31 18 | const fn implements_format<T: defmt::Format>() {}
32 | ^^^^^^^^^^^^^ required by this bound in `implements_format`