So for mean inference, would there be a situation where you cannot use the T-test? Seems like you can always calculate a t-statistic, so it seems like you can always do the t-test for mean inference.
But what about for situations where the true population distribution either does not have a mean or a variance?