Unless e.g. you are talking about Chess960 and Fischer castling. Then castling can be the only legal move in some cases - a no castling rule implemented for in the case of Chess960 could in the case of some starting positions mean a player might stalemated due to it (but not if castling were still legal), there.