This avoids initializing variables with the copy-constructor of a non-trivially copyable type.
non-trivially copyable typeAutomating this check can save us some brain bandwidth during reviews.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/25707 | core#25707]]
Depends on D18072