doku icon indicating copy to clipboard operation
doku copied to clipboard

"the trait bound ... is not satisfied" should point at the offending field

Open Patryk27 opened this issue 3 years ago • 0 comments

Compiling this code:

#[derive(Document)]
struct Foo {
  bar: Bar,
}

struct Bar;

... will throw the trait bound ... is not satisfied at Document - it'd be nice if we pointed out bar: Bar instead, as does e.g. Serde.

Patryk27 avatar Feb 23 '22 13:02 Patryk27