Mirroring the change to bound types in https://github.com/rust-lang/rust/pull/55330. cc @eddyb
Mirroring the change to bound types in #55330.
cc @eddyb