It seems that `TypeAbstractions` are enabled in test, but in theory, [they should not be used](https://gitlab.haskell.org/ghc/ghc/-/issues/25448). Removing that language extension compiles correctly.