When implementing a Terraform provider, for one. At one point I had the scaffolding up to build providers in Rust (contributing to Tonic and Rusoto along the way) - many of the bugs in TF providers would be resolved by generics and type safety.
I have built several services that do dynamic infrastructure provisioning in response to API calls as part of the core functionality. This isn’t unusual.
Obviously there are services meant to be consumed from application code, but the infrastructure provisioning stuff?