In Episode 336, Itachi was seen to apply his genjutsu on Mecha-Naruto.
But Mecha-Naruto is a robot which does not have a brain but memory chip. As it is a robot (which does not have any chakra), its battle techniques could not be copied by Kakashi's Sharingan.
Wikia-Genjutsu mentions that genjutsu can only occur by manipulation of chakra of the brain.
Then how does Itachi put genjutsu on a memory chip of a robot?