You should add template constraint `if (T.length == 1)` to limit parameter count, instead of static assertion in template body.
Because, if invalid template parameters given, the former reports `does not match any template declaration` error.
On the other hand, the latter will report static assertion failure in `std.traits` code, and it is definitely unhelpful for the Phobos users.