Copper lies below hydrogen in the reactivity series and therefore cannot displace hydrogen from dilute hydrochloric acid. Magnesium, aluminium, and lithium are above hydrogen and can react with suitable dilute acids to release hydrogen gas.