Hydrogen might make some sense for long haul trucks. Then you need fewer refueling stations on only the major routes. You could also generate the hydrogen locally by using electricity.
Alternatively you could equip the trucks with batteries and connect them to the electrical grid via overhead lines similar to trains for recharging. Combined with autonomous driving those trucks could go non-stop and leave the highway with full batteries.