Two-Weapon Fighting (PHB, pg 195) says the following:
When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand. You don't add your ability modifier to the damage of the bonus attack, unless that modifier is negative.
So to use two weapons on the same turn, per Two-Weapon Fighting, they must both be light.
However, the Crossbow Expert feat (PHB, pg. 165) says:
When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding.
I assume that, because the Crossbow Expert feat's wording does not mention light weapons, that the "one-handed weapon" doesn't have to be light? So, for example, a Ranger (let's assume level 4 as so to ignore Extra Attack) can wield a longsword and a hand crossbow and attack with both on the same turn as per the Crossbow Expert feat?