1
You don't want perfect forwarding, here, you want to return either T& or const T& and never T&&. std::forward is designed for passing one of your parameters along to another function, not for return values.
I think what you want is:
template <typename T>
min(T&& x, T&& y) -> decltype(x)
{
...