Fallacy of composition
The fallacy of composition is an informal fallacy that arises when one infers that something is true of the whole from the fact that it is true of some part of the whole. A trivial example might be: "This tire is made of rubber; therefore, the vehicle of which it is a part is also made of rubber." That is fallacious, because vehicles are made with a variety of parts, most of which are not made of rubber.