1.
When metals react with nitric acid, they do not produce hydrogen gas.
 
2.
Magnesium can form hydrogen gas when it reacts with dilute nitric acid.