When ethyl iodide is heated with silver nitrate