Re: [PATCH 2/7] rust: kunit: support checked `-> Result`s in KUnit `#[test]`s

From: Miguel Ojeda
Date: Sun May 04 2025 - 14:00:13 EST


On Sun, May 4, 2025 at 7:34 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> Why not restrict this to Result<(), E>?

I guess it is an option -- not sure if there may be a use case.

> Is it possible to include the error in the output?

I thought about giving some more context somehow and perhaps printing
it "manually" in the log, possibly in a KUnit `# ...`. David can
probably suggest the "proper" way.

Thanks!

Cheers,
Miguel