Re: [PATCH 4/4] rust: devres: implement register_foreign_release()

From: Danilo Krummrich
Date: Sun Jun 22 2025 - 16:25:54 EST


On Sun, Jun 22, 2025 at 10:14:00PM +0200, Benno Lossin wrote:
> I don't understand? When `P` is set to `Box<T>` in the
> `register_foreign_release` below, then `P::Borrow<'_> == &'_ T` and the
> bound of `&T: Release` is not satisfied.

Yeah, you're right, we have to add `&T` too.