Copper doesn't react with dilute hydrochloric acid but it does react with concentrated hydrochloric acid
Copper reacts with hydrochloric acid forming copper salt and hydrogen gas
Cu + HCl ====> copper chloride + hydrogen
Cu + HCl ====> copper chloride + hydrogen