This runtime error can be transformed into a compile error by not defining the function's body. Then it will compile only with the specialized types.